From 79a10d9a8da7f7072169f584cd72040d910642ad Mon Sep 17 00:00:00 2001 From: Steffen Wilke Date: Mon, 8 Apr 2019 10:15:08 +0200 Subject: [PATCH] Try to publish tagged builds. --- Jenkinsfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 88d41df..a04d4cc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,7 +20,7 @@ pipeline { } } - stage('Publish') { + stage('Publish Snapshot') { when { branch 'master' } @@ -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) + } + } } } \ No newline at end of file