Skip to content

Commit

Permalink
Fix nightly test always get cancelled issue (sonic-net#13981)
Browse files Browse the repository at this point in the history
The nightly test pipeline always get cancelled regardless the checking of ${{ parameters.TEST_PLAN_TYPE }}.

This change updated the code to explicity assign the parameter to a variable. Then compare variable with expected value. Also added a echo for debugging purpose.

Signed-off-by: Xin Wang <[email protected]>
  • Loading branch information
wangxin authored Aug 5, 2024
1 parent c055158 commit cab72b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .azure-pipelines/run-test-elastictest-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,9 @@ steps:
echo "Try to cancel test plan $TEST_PLAN_ID, cancelling finished test plan has no effect."
# If TEST_PLAN_TYPE is NIGHTLY, skip the cancel step
if [ "${{ parameters.TEST_PLAN_TYPE }}" == "NIGHTLY" ]; then
test_plan_type=${{ parameters.TEST_PLAN_TYPE }}
echo "TEST_PLAN_TYPE is $test_plan_type"
if [ "$test_plan_type" == "NIGHTLY" ]; then
echo "TEST_PLAN_TYPE is NIGHTLY, skip the cancel step as a dirty workaround for az login timeout issue"
exit 0
fi
Expand Down

0 comments on commit cab72b0

Please sign in to comment.