Skip to content

Commit

Permalink
Merge pull request #189 from cyberark/revert-tag-branch-release-condi…
Browse files Browse the repository at this point in the history
…tion

Revert "Limit publishing to v2 and master branches only"
  • Loading branch information
sgnn7 authored Aug 17, 2020
2 parents 68a86c6 + b2152cf commit f833c5e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,10 @@ pipeline {
stage('Release Puppet module') {
when {
allOf {
// Only publish from mainline and v2 branches
anyOf {
branch 'master'
branch 'v2'
}

// Current git HEAD is an annotated tag
expression {
sh(returnStatus: true, script: 'git describe --exact | grep -q \'^v[0-9.]\\+$\'') == 0
}

// Don't try to publish during daily builds
not { triggeredBy 'TimerTrigger' }
}
}
Expand Down

0 comments on commit f833c5e

Please sign in to comment.