zutil/Jenkinsfile

47 lines
1.1 KiB
Text
Raw Normal View History

2017-10-06 17:13:45 +02:00
#!groovy
2016-12-19 15:56:30 +01:00
// Jenkinsfile (Pipeline Script)
2016-12-19 16:16:39 +01:00
2024-09-11 00:11:25 +02:00
pipeline {
agent any
2016-12-19 15:56:30 +01:00
2024-09-11 00:11:25 +02:00
tools {
jdk 'jdk-11'
2024-09-11 01:19:36 +02:00
}
environment {
2024-09-11 16:54:08 +02:00
gradleParams = "--info -Pversion=1.0.${BUILD_NUMBER}" // --no-daemon
2024-09-11 00:11:25 +02:00
}
2024-09-11 00:11:25 +02:00
stages {
2024-09-11 01:19:36 +02:00
stage('Build') {
steps{
withGradle {
2024-09-11 01:22:47 +02:00
sh "chmod +x ./gradlew"
2024-09-17 22:54:34 +02:00
sh "./gradlew ${gradleParams} clean"
sh "./gradlew ${gradleParams} -x test build"
2024-09-11 00:16:56 +02:00
}
2024-09-10 23:52:35 +02:00
}
2024-09-11 01:19:36 +02:00
}
/*
2024-09-11 01:19:36 +02:00
stage('Test') {
steps {
withGradle {
2024-09-11 01:22:47 +02:00
sh "./gradlew ${gradleParams} test"
2024-09-11 00:16:56 +02:00
}
2024-09-10 23:52:35 +02:00
}
2024-09-11 01:19:36 +02:00
}
*/
2024-09-11 01:19:36 +02:00
stage('Deploy') {
steps {
withGradle {
configFileProvider([configFile(fileId: '70cb2022-0bc2-4b25-98a4-e1526dbf2735', variable: 'GRADLE_PROPERTIES')]) {
sh './gradlew ${gradleParams} publishToMavenLocal'
2024-09-11 00:11:25 +02:00
sh './gradlew ${gradleParams} -Prelease -PcustomProperties=${GRADLE_PROPERTIES} publish'
2024-09-11 00:16:56 +02:00
}
}
2024-09-11 00:11:25 +02:00
}
2017-10-26 17:17:49 +02:00
}
}
2024-09-11 01:19:36 +02:00
}