Skip to content
Snippets Groups Projects
Commit 7f963d84 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Merge branch '7030-ci-projectvars-for-replacement' into 'master'

ci-rev-short-sha is deprecated

See merge request !23
parents c48166c6 d72cf30c
No related branches found
No related tags found
1 merge request!23ci-rev-short-sha is deprecated
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment