Skip to content

Instantly share code, notes, and snippets.

################# Declare stage variables with triggering artifacts
$myhash = @{"ALPHA"="_myA"; "BETA"="_myB"; "GAMMA" = "_myC"; "DELTA" = "_myD"}
################## Declaration done
$trigalias = "$(RELEASE.TRIGGERINGARTIFACT.ALIAS)"
if ($trigalias -ne "") {
$mystage = $myhash.Keys | ? { $myhash[$_] -eq $trigalias }
$relid = "$(RELEASE.RELEASEID)"