Skip to content

Commit

Permalink
IM-98 Only deploy develop or master builds
Browse files Browse the repository at this point in the history
  • Loading branch information
iperdomo committed Jan 29, 2024
1 parent a47422f commit a59e802
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ pipeline {
}

stage('Maven deploy') {
when {
branch {
anyOf { branch 'develop'; branch 'master' }
}
}
steps {
configFileProvider([configFile(fileId: '1f5f24a2-9839-4194-b2ad-0613279f9fba', variable: 'MAVEN_SETTINGS_XML')]) {
sh './mvnw --settings $MAVEN_SETTINGS_XML deploy -pl :api -DskipTests'
Expand Down
5 changes: 5 additions & 0 deletions Jenkinsfile.withParams
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ pipeline {
}

stage('Maven deploy') {
when {
branch {
anyOf { branch 'develop'; branch 'master' }
}
}
steps {
configFileProvider([configFile(fileId: '1f5f24a2-9839-4194-b2ad-0613279f9fba', variable: 'MAVEN_SETTINGS_XML')]) {
sh './mvnw --settings $MAVEN_SETTINGS_XML deploy -pl :api -DskipTests'
Expand Down

0 comments on commit a59e802

Please sign in to comment.