Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions scripts/auto_release/PythonSdkLiveTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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\"\
}" \
Expand All @@ -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
fi