Fixup CHANGELOG.md, add SetPackageVersion, add calls to set-test-pipe… (#1936)

* Fixup CHANGELOG.md, add SetPackageVersion, add calls to set-test-pipeline-version.yml

* Run set-test-pipeline-version.yml per artifact, open testpipeline as draft

* git diff to view changes in file

* Move set-test-pipeline-version.yml after Validate Clang Format

* remove second artifact loop in archetype-cpp-release.yml
This commit is contained in:
Chidozie Ononiwu 2021-03-23 11:34:30 -07:00 committed by GitHub
parent eb1177ea3a
commit 3d1a58e3f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 44 additions and 10 deletions

View File

@ -5,6 +5,9 @@ parameters:
- name: ServiceDirectory
type: string
default: not-specified
- name: TestPipeline
type: boolean
default: false
- name: Coverage
type: string
default: ''
@ -156,6 +159,13 @@ jobs:
displayName: Validate Clang Format
condition: and(succeededOrFailed(), eq(variables['CHECK_CLANG_FORMAT'], 1))
- ${{ each artifact in parameters.Artifacts }}:
- template: /eng/common/pipelines/templates/steps/set-test-pipeline-version.yml
parameters:
PackageName: ${{ artifact.Name }}
ServiceDirectory: ${{ parameters.ServiceDirectory }}
TestPipeline: ${{ parameters.TestPipeline }}
# Install apt dependencies (if appropriate)
- bash: sudo apt install -y $(AptDependencies)
@ -213,7 +223,14 @@ jobs:
parameters:
Directory: ''
CheckLinkGuidance: $true
- ${{ each artifact in parameters.Artifacts }}:
- template: /eng/common/pipelines/templates/steps/set-test-pipeline-version.yml
parameters:
PackageName: ${{ artifact.Name }}
ServiceDirectory: ${{ parameters.ServiceDirectory }}
TestPipeline: ${{ parameters.TestPipeline }}
- pwsh: |
$setupFile="doxygen-1.8.18-setup.exe";

View File

@ -1,6 +1,7 @@
parameters:
Artifacts: []
ArtifactName: 'not-specified'
TestPipeline: false
stages:
- ${{if and(eq(variables['Build.Reason'], 'Manual'), eq(variables['System.TeamProject'], 'internal'))}}:
@ -25,6 +26,11 @@ stages:
deploy:
steps:
- checkout: self
- template: /eng/common/pipelines/templates/steps/set-test-pipeline-version.yml
parameters:
PackageName: ${{ artifact.Name }}
ServiceDirectory: ${{ parameters.ServiceDirectory }}
TestPipeline: ${{ parameters.TestPipeline }}
- pwsh: Get-ChildItem -Recurse $(Pipeline.Workspace)/packages/${{artifact.Name}}
displayName: Output Visible Artifacts
- task: Powershell@2
@ -181,6 +187,7 @@ stages:
PRBody: Update vcpkg ports for Azure SDK release. This release may contain multiple ports.
SkipCheckingForChanges: true
BaseBranchName: master
OpenAsDraft: ${{ parameters.TestPipeline }}
- ${{if ne(artifact.skipUpdatePackageVersion, 'true')}}:
- deployment: UpdatePackageVersion

View File

@ -37,6 +37,8 @@ stages:
CtestRegex: ${{ parameters.CtestRegex }}
Coverage: ${{ parameters.Coverage }}
CoverageReportPath: ${{ parameters.CoverageReportPath }}
${{ if eq(parameters.ServiceDirectory, 'template') }}:
TestPipeline: true
- ${{ if and(eq(variables['System.TeamProject'], 'internal'), ne(parameters.LiveTestCtestRegex, '')) }}:
- stage: LiveTest
@ -60,3 +62,5 @@ stages:
- Build
Artifacts: ${{ parameters.Artifacts }}
ArtifactName: packages
${{ if eq(parameters.ServiceDirectory, 'template') }}:
TestPipeline: true

View File

@ -74,7 +74,8 @@ function Publish-cpp-GithubIODocs ($DocLocation, $PublicArtifactLocation)
Upload-Blobs -DocDir $DocLocation -PkgName $packageInfo.name -DocVersion $packageInfo.version -ReleaseTag $releaseTag
}
function Get-cpp-GithubIoDocIndex() {
function Get-cpp-GithubIoDocIndex()
{
# Update the main.js and docfx.json language content
UpdateDocIndexFiles -appTitleLang "C++"
# Fetch out all package metadata from csv file.
@ -86,3 +87,9 @@ function Get-cpp-GithubIoDocIndex() {
# Generate yml/md toc files and build site.
GenerateDocfxTocContent -tocContent $tocContent -lang "C++"
}
function SetPackageVersion ($PackageName, $Version, $ServiceDirectory)
{
& "$EngDir/scripts/Update-PkgVersion.ps1" -ServiceDirectory $ServiceDirectory -PackageName $PackageName `
-NewVersionString $Version
}

View File

@ -1,31 +1,30 @@
# Release History
## 1.0.0-beta.25 (2020-01-12)
## 1.0.0-beta.25 (2021-01-12)
* Validate vcpkg publishing automation (part 20)
## 1.0.0-beta.24 (2020-01-11)
## 1.0.0-beta.24 (2021-01-11)
* Validate vcpkg publishing automation (part 19)
## 1.0.0-beta.23 (2020-01-11)
## 1.0.0-beta.23 (2021-01-11)
* Validate vcpkg publishing automation (part 18)
## 1.0.0-beta.22 (2020-01-08)
## 1.0.0-beta.22 (2021-01-08)
* Validate vcpkg publishing automation (part 17)
## 1.0.0-beta.21 (2020-01-08)
## 1.0.0-beta.21 (2021-01-08)
* Validate vcpkg publishing automation (part 17)
## 1.0.0-beta.20 (2020-01-08)
## 1.0.0-beta.20 (2021-01-08)
* Validate vcpkg publishing automation (part 16)
## 1.0.0-beta.19 (2020-01-08)
## 1.0.0-beta.19 (2021-01-08)
* Validate vcpkg publishing automation (part 15)