File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 3838 run : |
3939 source scripts/lib-jira.sh
4040 source scripts/lib-kosli.sh
41- RELEASE_ID=10099
4241
43- set -x
42+ # Fail if release already exists
43+ CURRENT_REL_JSON=$(get_CURRENT_REL_candidate ${{ env.JIRA_PROJECT_ID }})
44+ CURRENT_REL=$(echo "${CURRENT_REL_JSON}" | jq .values)
45+ if [ "${CURRENT_REL}" != "[]" ]; then
46+ echo "Release candidate already exist: ${CURRENT_REL}"
47+ exit 1
48+ fi
49+
50+ # Create the release and get the release ID
51+ TIMESTAMP=$(date -u "+%Y-%m-%d-%H-%M-%S")
52+ CREATE_RESULT_JSON=$(create_release ${{ env.JIRA_PROJECT_ID }} ${TIMESTAMP})
53+ RELEASE_ID=$(echo "${CREATE_RESULT_JSON}" | jq .id)
54+
55+ # Add all jira tickets between prod and staging
4456 JIRA_KEYS=$(get_issue_keys_between_staging_and_prod)
4557 echo "Found issues: ${JIRA_KEYS}"
4658 for JIRA_KEY in ${JIRA_KEYS}; do
You can’t perform that action at this time.
0 commit comments