File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 2323 addToPath : true
2424 architecture : ' x64'
2525 - bash : |
26+ # verify $ISSUE_LINK and $BASE_BRANCH is not null
27+ if [ -z "$(BASE_BRANCH)" -o -z "$(ISSUE_LINK)" ]; then
28+ echo "ISSUE_LINK or BASE_BRANCH do not exist, pipeline fail!!!"
29+ exit 1
30+ fi
31+
2632 script_path=$(pwd)/scripts/auto_release
2733 cd ..
2834 git config --global user.email "PythonSdkPipelines"
7278 --user "anything:$(USR_TOKEN)" \
7379 -d "{\
7480 \"title\":\"[AutoRelease] $new_branch(Do not merge)\",\
75- \"body\":\"$test_result Please Add the link issue \",\
81+ \"body\":\"$test_result $(ISSUE_LINK) \",\
7682 \"head\":\"$(USR_NAME):$new_branch\",\
7783 \"base\":\"$target_branch\"\
7884 }" \
8288
8389 # if test fail, still push and crete PR. But pipeline would fail to remind user
8490 if [ -f "$output_path/live_test_fail.txt" ]; then
85- echo "please fix failure test!!! \'[AutoRelease] $new_branch \' has been created!!!"
91+ echo "please fix failure test!!! $(ISSUE_LINK) \'[AutoRelease] $new_branch \' has been created!!!"
8692 exit 1
87- fi
93+ fi
You can’t perform that action at this time.
0 commit comments