diff options
author | Fatih Degirmenci <fdegir@gmail.com> | 2018-03-22 13:13:18 -0700 |
---|---|---|
committer | Fatih Degirmenci <fdegir@gmail.com> | 2018-03-22 13:13:18 -0700 |
commit | 406422a0f7c4672915819250a0a4a72a5f5c5ffa (patch) | |
tree | b130a280fafcb19cad68f10b9d67d21c30c6aca3 /jjb/xci | |
parent | 14b5f30468a96c5e400d2139caac7c52a1542b26 (diff) |
xci: Record additional promotion metadata for further use
It would be good to point to the link of the job that promoted
certain scenario and display promotion date/time so we know when
was the last time the scenario has successfully been promoted.
Change-Id: I8099cf48f0ba5000cbf7622aa084f863f123eb15
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
Diffstat (limited to 'jjb/xci')
-rwxr-xr-x | jjb/xci/xci-promote.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jjb/xci/xci-promote.sh b/jjb/xci/xci-promote.sh index fb7e0e6fa..07fff8030 100755 --- a/jjb/xci/xci-promote.sh +++ b/jjb/xci/xci-promote.sh @@ -30,6 +30,10 @@ if [ ! -f $LOCAL_PROMOTION_METADATA_FILE ]; then exit 1 fi +# put additional info into the metadata file so we can use that for displaying the information +echo "PROMOTED_BY=$BUILD_URL" >> $LOCAL_PROMOTION_METADATA_FILE +echo "PROMOTED_ON=$(date '+%F_%H:%M')" >> $LOCAL_PROMOTION_METADATA_FILE + # upload promotion metadata file to OPNFV artifact repo echo "Storing promotion metadata as $REMOTE_PROMOTION_METADATA_FILE" gsutil cp $LOCAL_PROMOTION_METADATA_FILE $REMOTE_PROMOTION_METADATA_FILE > /dev/null 2>&1 |