Skip to content
Snippets Groups Projects

ci-rev-short-sha is deprecated

Merged Hahn Axel (hahn) requested to merge 7030-ci-projectvars-for-replacement into master
1 file
+ 11
2
Compare changes
  • Side-by-side
  • Inline
+ 11
2
@@ -160,7 +160,12 @@ function deploy(){
# ----------------------------------------------------------------------
header "Set profile [$1]"
setprofile $1
echo
echo "INFO:"
echo " Project : $IMLCI_PROJECT"
echo " Phase : $IMLCI_PHASE"
echo " Install path: $installdir"
echo
# ----------------------------------------------------------------------
header "Download ${IML} ${IMLCI_PROJECT}.tgz"
@@ -265,10 +270,14 @@ function deploy(){
echo "# generated with data from $cijson" > "$replacefile"
for mykey in branch branch_short branch_type revision revision_short imagepart
do
civalue=$( cat "${cijson}" | jq ".${mykey}" | tr -d '"')
civalue=$( cat "${cijson}" | jq ".${mykey}" | tr -d '"' | sed "s,^null\$,,")
echo "ci-${mykey}=$civalue" >> "$replacefile"
done
# DEPRECATED
revision=$( cat "${cijson}" | jq ".revision" | tr -d '"')
echo "ci-rev-short-sha=${revision:0:8}" >> "$replacefile"
ls -l "$replacefile"
Loading