summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFatih Degirmenci <fdegir@gmail.com>2019-09-01 10:57:25 +0200
committerFatih Degirmenci <fdegir@gmail.com>2019-09-02 12:04:30 +0200
commit58954fc37a9db69b87f9efb1f0a0b352340d6b7e (patch)
tree57c7f5447ad2eba661edf48f7025788217e1316f
parent417d91d8d6de7b0887759b5a17a0bafa5aed7cbe (diff)
xci: Ensure the flavor is captured in all cases
Change-Id: I48ee615325002a2d3687d336b9a83a0e5637cee7 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
-rwxr-xr-xjjb/xci/xci-set-scenario.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/jjb/xci/xci-set-scenario.sh b/jjb/xci/xci-set-scenario.sh
index 237eb319a..ccea16f87 100755
--- a/jjb/xci/xci-set-scenario.sh
+++ b/jjb/xci/xci-set-scenario.sh
@@ -243,12 +243,15 @@ esac
# save the installer and scenario names into java properties file
# so they can be injected to downstream jobs via envInject
echo "Recording the installer '$INSTALLER_TYPE' and scenario '${DEPLOY_SCENARIO[0]}' and SHAs for downstream jobs"
-echo "INSTALLER_TYPE=$INSTALLER_TYPE" > $WORK_DIRECTORY/scenario.properties
+echo "INSTALLER_TYPE=$INSTALLER_TYPE" >> $WORK_DIRECTORY/scenario.properties
echo "DEPLOY_SCENARIO=$DEPLOY_SCENARIO" >> $WORK_DIRECTORY/scenario.properties
echo "XCI_SHA=$XCI_SHA" >> $WORK_DIRECTORY/scenario.properties
echo "SCENARIO_SHA=$SCENARIO_SHA" >> $WORK_DIRECTORY/scenario.properties
echo "PROJECT_NAME=$GERRIT_PROJECT" >> $WORK_DIRECTORY/scenario.properties
+# log scenario.properties to console to ease the troubleshooting when needed
+log_scenario_properties
+
# skip scenario support check if the job is promotion job
if [[ "$JOB_NAME" =~ (os|k8) ]]; then
exit 0