Skip to content

Commit

Permalink
ci(jenkins): only deploy from branch develop
Browse files Browse the repository at this point in the history
- other branches should not deploy new snapshots
  • Loading branch information
menski committed Jun 19, 2018
1 parent 9ed58db commit b1c6bb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ pipeline {
}

stage('Deploy') {
when { branch 'develop' }
steps {
withMaven(jdk: jdkVersion, maven: mavenVersion, mavenSettingsConfig: mavenSettingsConfig) {
sh 'mvn -B generate-sources source:jar javadoc:jar deploy -DskipTests'
Expand Down

0 comments on commit b1c6bb2

Please sign in to comment.