Skip to content

Commit

Permalink
[ci] Fix rev for version (#22716)
Browse files Browse the repository at this point in the history
* [ci] Fix OfficialBuildId

* Just on pack
  • Loading branch information
rmarinho authored May 29, 2024
1 parent 1e74e8f commit 812807c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion eng/pipelines/common/pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ steps:
DOTNET_TOKEN: $(dotnetbuilds-internal-container-read-token)
PRIVATE_BUILD: $(PrivateBuild)

- pwsh: ./build.ps1 --target=dotnet-pack --configuration="${{ parameters.buildConfiguration }}" --verbosity=diagnostic --nugetsource="${{ parameters.nugetFolder }}"
- pwsh: ./build.ps1 --target=dotnet-pack --configuration="${{ parameters.buildConfiguration }}" --verbosity=diagnostic --nugetsource="${{ parameters.nugetFolder }}" --officialbuildid="${{ parameters.officialBuildId }}"
displayName: 'Pack .NET Maui'
name: PackMaui
workingDirectory: ${{ parameters.checkoutDirectory }}
Expand Down
4 changes: 4 additions & 0 deletions eng/pipelines/handlers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ stages:
value: $(Build.SourcesDirectory)/build.cmd -ci
- name: _BuildConfig
value: Release
- name: _BuildOfficalId
value: $[ format('{0}.{1}', format('{0:yyyyMMdd}', pipeline.startTime), counter(format('{0:yyyyMMdd}', pipeline.startTime), 1) )]

steps:
- template: common/pack.yml
parameters:
Expand All @@ -219,6 +222,7 @@ stages:
repoLogPath: $(Build.Arcade.LogsPath)
repoTestResultsPath: $(Build.Arcade.TestResultsPath)
gitHubToken: $(github--pat--vs-mobiletools-engineering-service2)
officialBuildId: $(_BuildOfficalId)
prepareSteps:
- template: common/provision.yml
parameters:
Expand Down
3 changes: 3 additions & 0 deletions eng/pipelines/maui-release-internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ extends:
value: $(Build.SourcesDirectory)/build.cmd -ci
- name: _BuildConfig
value: Release
- name: _BuildOfficalId
value: $[ format('{0}.{1}', format('{0:yyyyMMdd}', pipeline.startTime), counter(format('{0:yyyyMMdd}', pipeline.startTime), 1) )]

preSteps:
- checkout: self
Expand All @@ -185,6 +187,7 @@ extends:
repoArtifactsPath: $(Build.Arcade.ArtifactsPath)
repoLogPath: $(Build.Arcade.LogsPath)
repoTestResultsPath: $(Build.Arcade.TestResultsPath)
officialBuildId: $(_BuildOfficalId)
# prepareSteps:
# - template: /eng/pipelines/common/provision.yml@self
# parameters:
Expand Down
3 changes: 3 additions & 0 deletions eng/pipelines/maui-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ extends:
value: $(Build.SourcesDirectory)/build.cmd -ci
- name: _BuildConfig
value: Release
- name: _BuildOfficalId
value: $[ format('{0}.{1}', format('{0:yyyyMMdd}', pipeline.startTime), counter(format('{0:yyyyMMdd}', pipeline.startTime), 1) )]

steps:
- template: /eng/pipelines/common/pack.yml@self
Expand All @@ -153,6 +155,7 @@ extends:
repoArtifactsPath: $(Build.Arcade.ArtifactsPath)
repoLogPath: $(Build.Arcade.LogsPath)
repoTestResultsPath: $(Build.Arcade.TestResultsPath)
officialBuildId: $(_BuildOfficalId)
prepareSteps:
- template: /eng/pipelines/common/provision.yml@self
parameters:
Expand Down

0 comments on commit 812807c

Please sign in to comment.