Only publish if its the master branch

This commit is contained in:
Telesphoreo 2022-04-07 01:55:59 -05:00
parent 85eff9a26d
commit 804e0af63c
1 changed files with 10 additions and 0 deletions

10
Jenkinsfile vendored
View File

@ -8,6 +8,16 @@ pipeline {
}
}
}
stage("publish") {
when {
branch "master"
}
steps {
withGradle {
sh "./gradlew publish --no-daemon"
}
}
}
}
post {
always {