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

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

add ci-rev-short-sha

See merge request !21
parents 66e9c815 7c769f52
No related branches found
No related tags found
1 merge request!21add ci-rev-short-sha
......@@ -267,6 +267,10 @@ function deploy(){
civalue=$( cat "$cijson" | jq ".${mykey}" | tr -d '"')
echo "ci-${mykey}=$civalue" >> "$replacefile"
done
# "revision" must be the last mykey that this works:
echo "ci-rev-short-sha=${civalue:0:8}" >> "$replacefile"
ls -l "$replacefile"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment