Commit 2f533189 authored by Markus Frosch's avatar Markus Frosch 📣
Browse files

artifacts: Only use branch suffix for snapshots

parent 44146716
Pipeline #4400 passed with stages
in 14 minutes and 6 seconds
......@@ -34,7 +34,7 @@ if ($env:ICINGA_BUILD_TYPE -eq "snapshot") {
$version = ("v{0}" -f $fileparts[1])
if ($env:ICINGA_BUILD_TYPE -ne "snapshot" -and $env:UPSTREAM_GIT_BRANCH -ne "master" -and -not $env:ICINGA_VERSION_SUFFIX) {
if ($env:ICINGA_BUILD_TYPE -eq "snapshot" -and $env:UPSTREAM_GIT_BRANCH -ne "master" -and -not $env:ICINGA_VERSION_SUFFIX) {
$branch = $env:UPSTREAM_GIT_BRANCH
$branch = $branch.replace('/', '-')
$version = "${version}-${branch}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment