Skip to content

Commit

Permalink
Fixes nightlies builds
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszlenart committed Jan 21, 2025
1 parent 7e47919 commit 5713a74
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pipeline {
stage('Code Quality') {
when {
anyOf {
branch 'master'; branch 'release/struts-7-0-x'
branch 'main'
}
}
steps {
Expand All @@ -92,7 +92,7 @@ pipeline {
}
stage('Build Source & JavaDoc') {
when {
branch 'release/struts-7-0-x'
branch 'release/struts-6-7-x'
}
steps {
dir("local-snapshots-dir/") {
Expand All @@ -103,7 +103,7 @@ pipeline {
}
stage('Deploy Snapshot') {
when {
branch 'release/struts-7-0-x'
branch 'release/struts-6-7-x'
}
steps {
withCredentials([file(credentialsId: 'lukaszlenart-repository-access-token', variable: 'CUSTOM_SETTINGS')]) {
Expand All @@ -113,7 +113,7 @@ pipeline {
}
stage('Upload nightlies') {
when {
branch 'release/struts-7-0-x'
branch 'release/struts-6-7-x'
}
steps {
sh './mvnw -B package -DskipTests --no-transfer-progress'
Expand Down Expand Up @@ -170,7 +170,7 @@ pipeline {
}
stage('Build Source & JavaDoc') {
when {
branch 'master'
branch 'main'
}
steps {
dir("local-snapshots-dir/") {
Expand All @@ -181,7 +181,7 @@ pipeline {
}
stage('Deploy Snapshot') {
when {
branch 'master'
branch 'main'
}
steps {
withCredentials([file(credentialsId: 'lukaszlenart-repository-access-token', variable: 'CUSTOM_SETTINGS')]) {
Expand All @@ -191,7 +191,7 @@ pipeline {
}
stage('Upload nightlies') {
when {
branch 'master'
branch 'main'
}
steps {
sh './mvnw -B package -DskipTests --no-transfer-progress'
Expand Down

0 comments on commit 5713a74

Please sign in to comment.