Skip to content

Commit

Permalink
Update condition for publish stage to prevent publishing PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
object-Object committed Mar 18, 2024
1 parent 60eebc7 commit e70cb07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ pipeline {
}
stage('Publish') {
when {
anyOf {
allOf {
branch 'main'
not { changeRequest() }
}
}
stages {
Expand Down

0 comments on commit e70cb07

Please sign in to comment.