Skip to content

Commit

Permalink
Switch from BuildNumber to BuildID
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu committed Nov 18, 2020
1 parent 20b3139 commit c6757af
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion eng/pipelines/templates/jobs/archetype-sdk-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ jobs:
pwsh: true
workingDirectory: $(Build.SourcesDirectory)
filePath: eng/scripts/SetTestPipelineVersion.ps1
arguments: '-BuildNumber $(Build.BuildNumber)'
arguments: '-BuildID $(Build.BuildId)'

- pwsh: |
$toxenvvar = "whl,sdist"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ stages:
pwsh: true
workingDirectory: $(Build.SourcesDirectory)
filePath: eng/scripts/SetTestPipelineVersion.ps1
arguments: '-BuildID $(Build.BuildId)'
# TEMPORARILY DISABLING 11/16. Will re-enable after patch to common tooling.
# - ${{if ne(artifact.skipVerifyChangeLog, 'true')}}:
# - template: /eng/common/pipelines/templates/steps/verify-changelog.yml
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/templates/steps/build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ steps:
pwsh: true
workingDirectory: $(Build.SourcesDirectory)
filePath: eng/scripts/SetTestPipelineVersion.ps1
arguments: '-BuildNumber $(Build.BuildNumber)'
arguments: '-BuildID $(Build.BuildId)'

- script: |
echo "##vso[build.addbuildtag]Scheduled"
Expand Down
2 changes: 1 addition & 1 deletion eng/scripts/Language-Settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ function Update-python-CIConfig($pkgs, $ciRepo, $locationInDocRepo, $monikerId=$
install_type = "pypi"
name=$releasingPkg.PackageId
}
excludePath = @("test*","example*","sample*","doc*")
exclude_path = @("test*","example*","sample*","doc*")
}
$allJson.packages += $newItem
}
Expand Down
4 changes: 2 additions & 2 deletions eng/scripts/SetTestPipelineVersion.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

param (
[Parameter(mandatory = $true)]
$BuildNumber
$BuildID
)

. "${PSScriptRoot}\..\common\scripts\common.ps1"
Expand All @@ -23,7 +23,7 @@ LogDebug "Last Published Version $($semVarsSorted[0])"

$newVersion = [AzureEngSemanticVersion]::ParsePythonVersionString($semVarsSorted[0])
$newVersion.PrereleaseLabel = "b"
$newVersion.PrereleaseNumber = $BuildNumber
$newVersion.PrereleaseNumber = $BuildID

LogDebug "Version to publish [ $($newVersion.ToString()) ]"

Expand Down

0 comments on commit c6757af

Please sign in to comment.