Skip to content

Commit

Permalink
Update release job to reflect changes done in koji
Browse files Browse the repository at this point in the history
 - Validate if the build was tagged, if not, try to
tag it again.

Signed-off-by: Renata Ravanelli <[email protected]>
  • Loading branch information
ravanelli authored and dustymabe committed Aug 9, 2023
1 parent 06603e2 commit ea488ea
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion jobs/release.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,17 @@ lock(resource: "release-${params.STREAM}", extra: locks) {
""")
}
else {
echo("Skipping Brew Upload. Brew build ${nvr} found")
echo("Skipping Brew Upload. Brew build ${nvr} found.")
echo("Validating tag ${tag}.")
shwrap("""
coreos-assembler koji-upload ensure-tag \
--nvr ${nvr} \
--build ${params.VERSION} \
--keytab "/run/kubernetes/secrets/brew-keytab/brew.keytab" \
--owner ${brew_principal} \
--profile ${brew_profile} \
--tag ${tag}
""")
}
}
}
Expand Down

0 comments on commit ea488ea

Please sign in to comment.