diff --git a/scripts/auto_release/PythonSdkLiveTest.yml b/scripts/auto_release/PythonSdkLiveTest.yml index 65d13c0a1ffb..c57509e2776f 100644 --- a/scripts/auto_release/PythonSdkLiveTest.yml +++ b/scripts/auto_release/PythonSdkLiveTest.yml @@ -23,6 +23,12 @@ jobs: addToPath: true architecture: 'x64' - bash: | + # verify $ISSUE_LINK and $BASE_BRANCH is not null + if [ -z "$(BASE_BRANCH)" -o -z "$(ISSUE_LINK)" ]; then + echo "ISSUE_LINK or BASE_BRANCH do not exist, pipeline fail!!!" + exit 1 + fi + script_path=$(pwd)/scripts/auto_release cd .. git config --global user.email "PythonSdkPipelines" @@ -72,7 +78,7 @@ jobs: --user "anything:$(USR_TOKEN)" \ -d "{\ \"title\":\"[AutoRelease] $new_branch(Do not merge)\",\ - \"body\":\"$test_result Please Add the link issue \",\ + \"body\":\"$test_result $(ISSUE_LINK) \",\ \"head\":\"$(USR_NAME):$new_branch\",\ \"base\":\"$target_branch\"\ }" \ @@ -82,6 +88,6 @@ jobs: # if test fail, still push and crete PR. But pipeline would fail to remind user if [ -f "$output_path/live_test_fail.txt" ]; then - echo "please fix failure test!!! \'[AutoRelease] $new_branch \' has been created!!!" + echo "please fix failure test!!! $(ISSUE_LINK) \'[AutoRelease] $new_branch \' has been created!!!" exit 1 - fi \ No newline at end of file + fi