Skip to content

Commit

Permalink
Merge pull request #1951 from cyberark/run-pipeline-on-tags
Browse files Browse the repository at this point in the history
Update Jenkinsfile to run pipeline on tags
  • Loading branch information
Geri Jennings authored Nov 19, 2020
2 parents f593dd6 + 7ec4c96 commit a1ae8c2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ pipeline {

stage('Build and test Conjur') {
when {
// Run tests only when EITHER of the following is true:
// Run tests only when ANY of the following is true:
// 1. A non-markdown file has changed.
// 2. It's the nightly build.
// 3. It's a tag-triggered build.
anyOf {
// Note: You cannot use "when"'s changeset condition here because it's
// not powerful enough to express "_only_ md files have changed".
Expand All @@ -58,7 +59,12 @@ pipeline {
'''
)
}

// Always run the full pipeline on nightly builds
expression { params.NIGHTLY }

// Always run the full pipeline on tags of the form v*
tag "v*"
}
}
stages {
Expand Down

0 comments on commit a1ae8c2

Please sign in to comment.