+function write_change_metadata() {
+ echo "Info: Writing change metadata to $WORKSPACE/change.properties"
+ cat << EOF > $WORKSPACE/change.properties
+PROJECT_GIT_URL=$GIT_BASE_HTTPS/$GERRIT_PROJECT
+INSTALLER_TYPE=$INSTALLER_TYPE
+DEPLOY_SCENARIO=$DEPLOY_SCENARIO
+GERRIT_PATCHSET_REVISION=$GERRIT_PATCHSET_REVISION
+GERRIT_REFSPEC=$GERRIT_REFSPEC
+EOF
+
+ echo "Info: Content of change.properties"
+ echo "-------------------------------------------------------------------------"
+ cat $WORKSPACE/change.properties
+ echo "-------------------------------------------------------------------------"
+
+ # need to exit here to ensure we don't go further while determining scenario
+ exit 0
+}
+
+echo "Info: Determining the impacted scenario and used installer"