Implemented support for custom gradle setting
This commit is contained in:
parent
e9ccfd15de
commit
b4719d2eb4
3 changed files with 29 additions and 12 deletions
18
Jenkinsfile
vendored
18
Jenkinsfile
vendored
|
|
@ -13,12 +13,6 @@ pipeline {
|
|||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build') {
|
||||
steps{
|
||||
withGradle {
|
||||
|
|
@ -27,7 +21,7 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
stage('Test') {
|
||||
steps {
|
||||
withGradle {
|
||||
|
|
@ -35,16 +29,16 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
withGradle {
|
||||
configFileProvider([configFile(fileId: '70cb2022-0bc2-4b25-98a4-e1526dbf2735')]) {
|
||||
sh 'GPG_TTY=$(tty) ./gradlew ${gradleParams} sign'
|
||||
configFileProvider([configFile(fileId: '70cb2022-0bc2-4b25-98a4-e1526dbf2735', variable: 'GRADLE_PROPERTIES')]) {
|
||||
sh 'GPG_TTY=$(tty) ./gradlew ${gradleParams} -PcustomProperties=${GRADLE_PROPERTIES} sign'
|
||||
|
||||
sh "./gradlew ${gradleParams} publishToMavenLocal"
|
||||
sh './gradlew ${gradleParams} publishToMavenLocal'
|
||||
|
||||
sh './gradlew ${gradleParams} -Prelease publish'
|
||||
sh './gradlew ${gradleParams} -Prelease -PcustomProperties=${GRADLE_PROPERTIES} publish'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue