Skip to content

Commit

Permalink
Try to publish tagged builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
steffen-wilke committed Apr 8, 2019
1 parent f378d5c commit 79a10d9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pipeline {
}
}

stage('Publish') {
stage('Publish Snapshot') {
when {
branch 'master'
}
Expand All @@ -29,5 +29,15 @@ pipeline {
stepPublishArtifacts(folder: "src/bin/Release", bucket: "whatson", exclude: [], subfolders: false)
}
}

stage('Publish Release') {
when {
tag "v*"
}

steps {
stepPublishArtifacts(folder: "src/bin/Release", bucket: "whatson-${env.TAG_NAME}", exclude: [], subfolders: false)
}
}
}
}

0 comments on commit 79a10d9

Please sign in to comment.