Skip to content

Commit

Permalink
ci: replace tag regex with buildingTag fn
Browse files Browse the repository at this point in the history
  • Loading branch information
edaniszewski committed Feb 29, 2020
1 parent 884c2ee commit b6c2952
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .jenkins
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ pipeline {

stage('Draft GitHub Release') {
when {
// example matches: v1.2.3, v1.2.3-dev
tag pattern: '^v(0|[1-9]*)\\.(0|[1-9]*)\\.(0|[1-9]*)(-(\\S*))?$', comparator: "REGEXP"
buildingTag()
}
environment {
GITHUB_USER = 'vapor-ware'
Expand All @@ -83,8 +82,7 @@ pipeline {

stage('Publish Release Images') {
when {
// example matches: v1.2.3, v1.2.3-dev
tag pattern: '^v(0|[1-9]*)\\.(0|[1-9]*)\\.(0|[1-9]*)(-(\\S*))?$', comparator: "REGEXP"
buildingTag()
}
steps {
withDockerRegistry(registry: [credentialsId: 'vio-docker-hub']) {
Expand Down

0 comments on commit b6c2952

Please sign in to comment.