Skip to content

Commit 2599625

Browse files
committed
Fixed build variable expression notation and envar set.
1 parent e3c557e commit 2599625

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

build/pipelines/templates/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
$config = "Release"
6060
Write-Host "Git tag found. Setting Configuration to '$config'"
6161
$env:Configuration = $config
62-
echo "##vso[task.setvariable variable=Configuration]$config" # let downstream tasks read this variable
62+
Write-Host "##vso[task.setvariable variable=Configuration]$config" # let downstream tasks read this variable
6363
}
6464
6565
$projectsArray = "$(targetProjects)" -split ";"

build/pipelines/templates/variables.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ variables:
33
- group: 'WebJobs SDK Extensions Testing'
44
- group: 'Funkins Signing'
55
- name: buildNumber
6-
value: $[ counter('constant', 11000) ]
6+
value: $[ format('{0:yyyyMMddHHmmssfff}', pipeline.startTime) ]
77
- name: buildOutputDirectory
88
value: '$(System.DefaultWorkingDirectory)\buildoutput'
99
- name: IncludeBuildNumberInVersion
1010
value: ${{ 0 }}
1111
- name: isPr
12-
value: $[ eq('$(Build.Reason)', 'PullRequest') ]
12+
value: $[ eq(variables['Build.Reason'], 'PullRequest') ]
1313
- name: hasTag
14-
value: $[ startsWith('$(Build.SourceBranch)', 'refs/tag/') ]
14+
value: $[ startsWith(variables['Build.SourceBranch'], 'refs/tags') ]
1515
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
1616
value: ${{ true }}

run-tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ function RunTest([string]$project, [bool]$skipBuild = $false, [string]$filter =
1111

1212
if ($null -ne $env:Configuration)
1313
{
14-
Write-Host "Adding: --configuration $config"
15-
$cmdargs += "--configuration", "$config"
14+
Write-Host "Adding: --configuration $env:Configuration"
15+
$cmdargs += "--configuration", "$env:Configuration"
1616
}
1717

1818
if ($filter) {

0 commit comments

Comments
 (0)