Skip to content

Commit

Permalink
fix var
Browse files Browse the repository at this point in the history
  • Loading branch information
dilin-MS2 committed Jan 8, 2020
1 parent c152ea5 commit 3bb5896
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,15 @@ steps:
is_test_tag=^refs\/tags\/v?[0-9]+\.[0-9]+\.[0-9]+-[rR][cC]
# Update marketplace token
[[ $BUILD_SOURCEBRANCH =~ $is_prod_tag ]] && marketplace_token=$DILIN_MARKETPLACE_TOKEN
[[ $BUILD_SOURCEBRANCH =~ $is_test_tag || "$BUILD_REASON" == "Schedule" ]] && marketplace_token=$DILIN_TEST_MARKETPLACE_TOKEN
[[ $BUILD_SOURCEBRANCH =~ $is_prod_tag ]] && is_prod=true && marketplace_token=$DILIN_MARKETPLACE_TOKEN
[[ $BUILD_SOURCEBRANCH =~ $is_test_tag ]] && is_test=true && marketplace_token=$DILIN_TEST_MARKETPLACE_TOKEN
[[ "$BUILD_REASON" == "Schedule" ]] && marketplace_token=$DILIN_TEST_MARKETPLACE_TOKEN
[[ $BUILD_SOURCEBRANCH =~ $is_prod_tag || $BUILD_SOURCEBRANCH =~ $is_test_tag || "$BUILD_REASON" == "Schedule" ]] && deploy_to_marketplace=true
# Set job variable
echo "##vso[task.setvariable variable=is_prod]$is_prod"
echo "##vso[task.setvariable variable=is_test]$is_test"
echo "##vso[task.setvariable variable=marketplace_token]$marketplace_token"
echo "##vso[task.setvariable variable=deploy_to_marketplace]$deploy_to_marketplace"
env:
Expand Down

0 comments on commit 3bb5896

Please sign in to comment.