Skip to content

Commit

Permalink
Fixed build variable expression notation and envar set.
Browse files Browse the repository at this point in the history
  • Loading branch information
kashimiz committed Feb 17, 2023
1 parent e3c557e commit 2599625
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/pipelines/templates/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
$config = "Release"
Write-Host "Git tag found. Setting Configuration to '$config'"
$env:Configuration = $config
echo "##vso[task.setvariable variable=Configuration]$config" # let downstream tasks read this variable
Write-Host "##vso[task.setvariable variable=Configuration]$config" # let downstream tasks read this variable
}
$projectsArray = "$(targetProjects)" -split ";"
Expand Down
6 changes: 3 additions & 3 deletions build/pipelines/templates/variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ variables:
- group: 'WebJobs SDK Extensions Testing'
- group: 'Funkins Signing'
- name: buildNumber
value: $[ counter('constant', 11000) ]
value: $[ format('{0:yyyyMMddHHmmssfff}', pipeline.startTime) ]
- name: buildOutputDirectory
value: '$(System.DefaultWorkingDirectory)\buildoutput'
- name: IncludeBuildNumberInVersion
value: ${{ 0 }}
- name: isPr
value: $[ eq('$(Build.Reason)', 'PullRequest') ]
value: $[ eq(variables['Build.Reason'], 'PullRequest') ]
- name: hasTag
value: $[ startsWith('$(Build.SourceBranch)', 'refs/tag/') ]
value: $[ startsWith(variables['Build.SourceBranch'], 'refs/tags') ]
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
value: ${{ true }}
4 changes: 2 additions & 2 deletions run-tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ function RunTest([string]$project, [bool]$skipBuild = $false, [string]$filter =

if ($null -ne $env:Configuration)
{
Write-Host "Adding: --configuration $config"
$cmdargs += "--configuration", "$config"
Write-Host "Adding: --configuration $env:Configuration"
$cmdargs += "--configuration", "$env:Configuration"
}

if ($filter) {
Expand Down

0 comments on commit 2599625

Please sign in to comment.