Skip to content
Snippets Groups Projects

add ci-rev-short-sha

Merged Hahn Axel (hahn) requested to merge 7030-ci-projectvars-for-replacement into master
1 file
+ 4
0
Compare changes
  • Side-by-side
  • Inline
+ 4
0
@@ -267,6 +267,10 @@ function deploy(){
@@ -267,6 +267,10 @@ function deploy(){
civalue=$( cat "$cijson" | jq ".${mykey}" | tr -d '"')
civalue=$( cat "$cijson" | jq ".${mykey}" | tr -d '"')
echo "ci-${mykey}=$civalue" >> "$replacefile"
echo "ci-${mykey}=$civalue" >> "$replacefile"
done
done
 
 
# "revision" must be the last mykey that this works:
 
echo "ci-rev-short-sha=${civalue:0:8}" >> "$replacefile"
 
ls -l "$replacefile"
ls -l "$replacefile"
Loading