Commit 3b45ba83 authored by Markus Frosch's avatar Markus Frosch 📣
Browse files

artifacts: Only suffix with branch when in snapshot mode

[ci skip]
parent bcd9b25c
Pipeline #6917 passed with stages
in 15 minutes and 29 seconds
......@@ -32,7 +32,7 @@ if ($env:ICINGA_BUILD_TYPE -eq "snapshot") {
$version = ("v{0}" -f $fileparts[1])
if ($env:UPSTREAM_GIT_BRANCH -ne "master" -and -not $env:ICINGA_VERSION_SUFFIX) {
if ($env:ICINGA_BUILD_TYPE -ne "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