Skip to content

Commit fcffe62

Browse files
committed
wip
1 parent 95ccced commit fcffe62

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ci-operator/step-registry/openshift/microshift/manage-versions-releases/openshift-microshift-manage-versions-releases-commands.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ ci_script_prologue
88
DRY_RUN=""
99
if [[ "$JOB_NAME" == rehearse* ]]; then
1010
echo "INFO: \$JOB_NAME starts with rehearse - running in DRY RUN mode"
11-
DRY_RUN="-n"
11+
DRY_RUN="--dry-run"
1212
fi
1313

1414
if [ -z ${CLONEREFS_OPTIONS+x} ]; then
1515
# Without `src` build, there's no CLONEREFS_OPTIONS, but it can be assembled from $JOB_SPEC
1616
CLONEREFS_OPTIONS=$(echo "${JOB_SPEC}" | jq '{"src_root": "/go", "log":"/dev/null", "git_user_name": "ci-robot", "git_user_email": "[email protected]", "fail": true, "refs": [(select(.refs) | .refs), try(.extra_refs[])]}')
1717
export CLONEREFS_OPTIONS
1818
fi
19+
env
1920
BRANCH=$(echo "${CLONEREFS_OPTIONS}" | jq -r '.refs[] | select(.repo=="microshift") | .base_ref')
2021
if [[ "${BRANCH}" == "" ]]; then
2122
echo "BRANCH turned out to be empty - investigate"
@@ -55,6 +56,11 @@ APP_ID="\$(cat /tmp/app_id)"
5556
export APP_ID
5657
export CLIENT_KEY=/tmp/key.pem
5758
./scripts/release-notes/gen_gh_releases.sh rhocp --ci-job-branch "${BRANCH}" publish ${DRY_RUN} --input /tmp/releases.json
59+
60+
./scripts/pyutils/create-venv.sh
61+
source ./_output/pyutils/bin/activate
62+
python ./test/bin/pyutils/generate_common_versions.py 21 --update-file ${DRY_RUN}
63+
cat ./test/bin/common_versions.sh
5864
EOF
5965
chmod +x /tmp/run.sh
6066

0 commit comments

Comments
 (0)