Skip to content

Commit

Permalink
Refactor how isTag is evaluated
Browse files Browse the repository at this point in the history
  • Loading branch information
kamperiadis committed Jun 11, 2024
1 parent 4a27585 commit 4b9fd3f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions eng/ci/templates/official/jobs/run-e2e-tests-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ jobs:
os: linux

variables:
isTag: $[contains(variables['Build.SourceBranch'], '/tags/' )]
${{ if contains(variables['Build.SourceBranch'], '/tags/' ) }}:
isTagTemp: true
isTag: $[variables.isTagTemp]
ApplicationInsightAgentVersion: 3.5.2

strategy:
Expand Down Expand Up @@ -53,7 +55,7 @@ jobs:
java -version
displayName: 'Check default java version'
- pwsh: |
if ($Env:isTag -eq 'true'){
if ("$(isTag)"){
$buildNumber="$(Build.SourceBranchName)"
Write-Host "Found git tag."
}
Expand Down
6 changes: 4 additions & 2 deletions eng/ci/templates/official/jobs/run-e2e-tests-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ jobs:
os: windows

variables:
isTag: $[contains(variables['Build.SourceBranch'], '/tags/' )]
${{ if contains(variables['Build.SourceBranch'], '/tags/' ) }}:
isTagTemp: true
isTag: $[variables.isTagTemp]
ApplicationInsightAgentVersion: 3.5.2

strategy:
Expand Down Expand Up @@ -43,7 +45,7 @@ jobs:
java -version
displayName: 'Check default java version'
- pwsh: |
if ($Env:isTag -eq 'true'){
if ("$(isTag)"){
$buildNumber="$(Build.SourceBranchName)"
Write-Host "Found git tag."
}
Expand Down

0 comments on commit 4b9fd3f

Please sign in to comment.