Update to allow release jobs to run
[infra/cicd.git] / jjb / cloud-infra / scripts / generate-change-metadata.sh
index 73f889748eb8e892450a88d52c1eb01f911ddd19..e2c6a0f0de8b5b74bc0705ecdc84f4126cc1835d 100755 (executable)
@@ -141,8 +141,10 @@ elif [[ "$GERRIT_PROJECT" =~ /installer/ ]]; then
   echo "NORDIX_$(echo $ENGINE_COMPONENT | tr a-z A-Z)_VERSION=$GERRIT_PATCHSET_REVISION" >> "$CHANGE_METADATA_FILE"
   echo "NORDIX_$(echo $ENGINE_COMPONENT | tr a-z A-Z)_REFSPEC=$GERRIT_REFSPEC" >> "$CHANGE_METADATA_FILE"
 else
+  # NOTE (fdegir): if the change comes into provisioner repos, we need to set the stack type
+  # properly for the jobs verifying those changes
   # set vars
-  export STACK_TYPE=kubernetes
+  export STACK_TYPE="${STACK_TYPE:-kubernetes}"
   export STACK_VERSION=$GERRIT_BRANCH
 
   # record vars to properties file