Skip to content

Commit 0c2514a

Browse files
authored
Update PythonSdkLiveTest.yml (#19999)
* Update PythonSdkLiveTest.yml * Update PythonSdkLiveTest.yml
1 parent 6771b32 commit 0c2514a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

scripts/auto_release/PythonSdkLiveTest.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ jobs:
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"
@@ -72,7 +78,7 @@ jobs:
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
}" \
@@ -82,6 +88,6 @@ jobs:
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

0 commit comments

Comments
 (0)