Skip to content

Commit

Permalink
Merge pull request #408 from microsoft/staging
Browse files Browse the repository at this point in the history
Release - 6/18/24
  • Loading branch information
EricJohnson327 authored Jun 17, 2024
2 parents 28650f7 + deadfcd commit 11fb693
Show file tree
Hide file tree
Showing 10 changed files with 200 additions and 107 deletions.
38 changes: 35 additions & 3 deletions build/TriggerReleaseBuild.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,38 @@
trigger:
- release

steps:
- script: echo Triggering ADO Build
displayName: 'Triggering ADO Build'
resources:
repositories:
- repository: templates_onebranch
type: git
name: OneBranch.Pipelines/GovernedTemplates
ref: refs/heads/main
- repository: m365Pipelines
type: git
name: 1ESPipelineTemplates/M365GPT
ref: refs/tags/release

extends:
template: v1/M365.Official.PipelineTemplate.yml@m365Pipelines
parameters:
sdl:
roslyn:
enabled: true
arrow:
serviceConnection: DevHome Build VM Generation
baseline:
baselineFile: $(Build.SourcesDirectory)\guardian\SDL\.gdnbaselines
pool:
name: Azure-Pipelines-1ESPT-ExDShared
image: windows-2022
os: windows
customBuildTags:
- ES365AIMigrationTooling
stages:
- stage: Trigger_Build
dependsOn: []
jobs:
- job: Trigger_Build
steps:
- script: echo Triggering ADO Build
displayName: 'Triggering ADO Build'
38 changes: 35 additions & 3 deletions build/TriggerStagingBuild.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,38 @@
trigger:
- staging

steps:
- script: echo Triggering ADO Build
displayName: 'Triggering ADO Build'
resources:
repositories:
- repository: templates_onebranch
type: git
name: OneBranch.Pipelines/GovernedTemplates
ref: refs/heads/main
- repository: m365Pipelines
type: git
name: 1ESPipelineTemplates/M365GPT
ref: refs/tags/release

extends:
template: v1/M365.Official.PipelineTemplate.yml@m365Pipelines
parameters:
sdl:
roslyn:
enabled: true
arrow:
serviceConnection: DevHome Build VM Generation
baseline:
baselineFile: $(Build.SourcesDirectory)\guardian\SDL\.gdnbaselines
pool:
name: Azure-Pipelines-1ESPT-ExDShared
image: windows-2022
os: windows
customBuildTags:
- ES365AIMigrationTooling
stages:
- stage: Trigger_Build
dependsOn: []
jobs:
- job: Trigger_Build
steps:
- script: echo Triggering ADO Build
displayName: 'Triggering ADO Build'
185 changes: 90 additions & 95 deletions build/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ parameters:
- release

variables:
MSIXVersion: '0.1400'
MSIXVersion: '0.1500'
solution: '**/GitHubExtension.sln'
appxPackageDir: 'AppxPackages'
testOutputArtifactDir: 'TestResults'
Expand Down Expand Up @@ -59,8 +59,6 @@ extends:
- task: NuGetToolInstaller@1

- task: NuGetAuthenticate@1
inputs:
nuGetServiceConnections: 'DevHomeInternal'

- task: PowerShell@2
displayName: Replace Stubbed Files
Expand All @@ -81,9 +79,8 @@ extends:
restoreSolution: '$(solution)'
feedsToUse: 'config'
nugetConfigPath: 'nuget.config'
externalFeedCredentials: 'DevHomeInternal'

- task: MicrosoftTDBuild.tdbuild-task.tdbuild-task.TouchdownBuildTask@3
- task: MicrosoftTDBuild.tdbuild-task.tdbuild-task.TouchdownBuildTask@4
displayName: Send and Download Localization Files for Artifacts
condition: and(eq(variables['EnableLocalization'], 'true'), eq(variables['UpdateLocalization'], 'true'))
inputs:
Expand All @@ -98,7 +95,7 @@ extends:
appendRelativeDir: true
pseudoSetting: Included

- task: MicrosoftTDBuild.tdbuild-task.tdbuild-task.TouchdownBuildTask@3
- task: MicrosoftTDBuild.tdbuild-task.tdbuild-task.TouchdownBuildTask@4
displayName: Download and Use Localization Files
condition: eq(variables['EnableLocalization'], 'true')
retryCountOnTaskFailure: 2
Expand Down Expand Up @@ -148,46 +145,45 @@ extends:
filePath: 'build/scripts/Build.ps1'
arguments: -Platform "${{ platform }}" -Configuration "${{ configuration }}" -Version $(MSIXVersion) -BuildStep "msix" -AzureBuildingBranch "$(BuildingBranch)" -IsAzurePipelineBuild -ClientId $(GitHubClientId) -ClientSecret $(GitHubClientSecret)

- task: EsrpCodeSigning@2
inputs:
ConnectedServiceName: 'Xlang Code Signing'
FolderPath: '$(appxPackageDir)\${{ configuration }}'
Pattern: '*.msix'
signConfigType: 'inlineSignParams'
inlineOperation: |
[
{
"keycode": "CP-230012",
"operationSetCode": "SigntoolSign",
"parameters": [
{
"parameterName": "OpusName",
"parameterValue": "Microsoft"
},
{
"parameterName": "OpusInfo",
"parameterValue": "http://www.microsoft.com"
},
{
"parameterName": "PageHash",
"parameterValue": "/NPH"
},
{
"parameterName": "FileDigest",
"parameterValue": "/fd sha256"
},
{
"parameterName": "TimeStamp",
"parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
}
],
"toolName": "signtool.exe",
"toolVersion": "6.2.9304.0"
}
]
SessionTimeout: '60'
MaxConcurrency: '50'
MaxRetryAttempts: '5'
- template: ./build/templates/EsrpSigning-Steps.yml@self
parameters:
displayName: Submit *.msix to ESRP for code signing
inputs:
FolderPath: '$(appxPackageDir)\${{ configuration }}'
Pattern: '*.msix'
UseMinimatch: true
signConfigType: inlineSignParams
inlineOperation: |
[
{
"keycode": "CP-230012",
"operationSetCode": "SigntoolSign",
"parameters": [
{
"parameterName": "OpusName",
"parameterValue": "Microsoft"
},
{
"parameterName": "OpusInfo",
"parameterValue": "http://www.microsoft.com"
},
{
"parameterName": "PageHash",
"parameterValue": "/NPH"
},
{
"parameterName": "FileDigest",
"parameterValue": "/fd sha256"
},
{
"parameterName": "TimeStamp",
"parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
}
],
"toolName": "signtool.exe",
"toolVersion": "6.2.9304.0"
}
]
# Commented out until our implementation is fixed
# - task: AzureKeyVault@1
Expand Down Expand Up @@ -292,46 +288,45 @@ extends:
filePath: 'build/scripts/Build.ps1'
arguments: -Configuration "${{ configuration }}" -Version $(MSIXVersion) -BuildStep "msixbundle" -IsAzurePipelineBuild

- task: EsrpCodeSigning@2
inputs:
ConnectedServiceName: 'Xlang Code Signing'
FolderPath: 'AppxBundles\${{ configuration }}'
Pattern: '*.msixbundle'
signConfigType: 'inlineSignParams'
inlineOperation: |
[
{
"keycode": "CP-230012",
"operationSetCode": "SigntoolSign",
"parameters": [
{
"parameterName": "OpusName",
"parameterValue": "Microsoft"
},
{
"parameterName": "OpusInfo",
"parameterValue": "http://www.microsoft.com"
},
{
"parameterName": "PageHash",
"parameterValue": "/NPH"
},
{
"parameterName": "FileDigest",
"parameterValue": "/fd sha256"
},
{
"parameterName": "TimeStamp",
"parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
}
],
"toolName": "signtool.exe",
"toolVersion": "6.2.9304.0"
}
]
SessionTimeout: '60'
MaxConcurrency: '50'
MaxRetryAttempts: '5'
- template: ./build/templates/EsrpSigning-Steps.yml@self
parameters:
displayName: Submit *.msixbundle to ESRP for code signing
inputs:
FolderPath: 'AppxBundles\${{ configuration }}'
Pattern: '*.msixbundle'
UseMinimatch: true
signConfigType: inlineSignParams
inlineOperation: |
[
{
"keycode": "CP-230012",
"operationSetCode": "SigntoolSign",
"parameters": [
{
"parameterName": "OpusName",
"parameterValue": "Microsoft"
},
{
"parameterName": "OpusInfo",
"parameterValue": "http://www.microsoft.com"
},
{
"parameterName": "PageHash",
"parameterValue": "/NPH"
},
{
"parameterName": "FileDigest",
"parameterValue": "/fd sha256"
},
{
"parameterName": "TimeStamp",
"parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
}
],
"toolName": "signtool.exe",
"toolVersion": "6.2.9304.0"
}
]
templateContext:
outputs:
Expand Down Expand Up @@ -365,7 +360,7 @@ extends:
artifactName: MsixBundle_Release
targetPath: StorePublish

- task: MicrosoftTDBuild.tdbuild-task.tdbuild-task.TouchdownBuildTask@3
- task: MicrosoftTDBuild.tdbuild-task.tdbuild-task.TouchdownBuildTask@4
displayName: Download and Use Localization Files
condition: eq(variables['EnableLocalization'], 'true')
retryCountOnTaskFailure: 2
Expand All @@ -390,11 +385,11 @@ extends:
$Files | % { Move-Item -Verbose $_.Directory $_.Directory.Parent.Parent -EA:Ignore }
pwsh: true

- task: MS-RDX-MRO.windows-store-publish-dev.package-task.store-package@2
- task: MS-RDX-MRO.windows-store-publish-dev.package-task.store-package@3
displayName: 'Create Staging StoreBroker Package'
condition: eq(variables['BuildingBranch'], 'staging')
inputs:
serviceEndpoint: 'DevHomeGitHubExtensionCanary StoreBroker'
serviceEndpoint: 'DevHomeGithubExtensionCanary StoreBroker ServiceConnection'
sbConfigPath: '$(System.DefaultWorkingDirectory)\build\store\canary\SBConfig.json'
sourceFolder: 'StorePublish'
contents: '*.msixbundle'
Expand All @@ -403,11 +398,11 @@ extends:
outSBName: DevHomeStoreSubmissionPackage
pdpInclude: 'PDP.xml'

- task: MS-RDX-MRO.windows-store-publish-dev.publish-task.store-publish@2
- task: MS-RDX-MRO.windows-store-publish-dev.publish-task.store-publish@3
displayName: 'Publish Staging StoreBroker Package'
condition: eq(variables['BuildingBranch'], 'staging')
inputs:
serviceEndpoint: 'DevHomeGitHubExtensionCanary StoreBroker'
serviceEndpoint: 'DevHomeGithubExtensionCanary StoreBroker ServiceConnection'
appId: 9N806ZKPW85R
inputMethod: JsonAndZip
jsonPath: '$(System.DefaultWorkingDirectory)\SBOutDir\DevHomeStoreSubmissionPackage.json'
Expand All @@ -418,11 +413,11 @@ extends:
jsonZipUpdateMetadata: true
updateImages: true

- task: MS-RDX-MRO.windows-store-publish-dev.package-task.store-package@2
- task: MS-RDX-MRO.windows-store-publish-dev.package-task.store-package@3
displayName: 'Create Release StoreBroker Package'
condition: eq(variables['BuildingBranch'], 'release')
inputs:
serviceEndpoint: 'DevHomeGitHubExtension StoreBroker'
serviceEndpoint: 'DevHomeGithubExtension StoreBroker ServiceConnection'
sbConfigPath: '$(System.DefaultWorkingDirectory)\build\store\preview\SBConfig.json'
sourceFolder: 'StorePublish'
contents: '*.msixbundle'
Expand All @@ -431,11 +426,11 @@ extends:
outSBName: DevHomeStoreSubmissionPackage
pdpInclude: 'PDP.xml'

- task: MS-RDX-MRO.windows-store-publish-dev.publish-task.store-publish@2
- task: MS-RDX-MRO.windows-store-publish-dev.publish-task.store-publish@3
displayName: 'Publish Release StoreBroker Package'
condition: eq(variables['BuildingBranch'], 'release')
inputs:
serviceEndpoint: 'DevHomeGitHubExtension StoreBroker'
serviceEndpoint: 'DevHomeGithubExtension StoreBroker ServiceConnection'
appId: 9NZCC27PR6N6
inputMethod: JsonAndZip
jsonPath: '$(System.DefaultWorkingDirectory)\SBOutDir\DevHomeStoreSubmissionPackage.json'
Expand Down
2 changes: 1 addition & 1 deletion build/scripts/CreateBuildInfo.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Param(
)

$Major = "0"
$Minor = "14"
$Minor = "15"
$Patch = "99" # default to 99 for local builds

$versionSplit = $Version.Split(".");
Expand Down
22 changes: 22 additions & 0 deletions build/templates/EsrpSigning-Steps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
parameters:
- name: displayName
type: string
default: ESRP Code Signing
- name: inputs
type: object
default: {}

steps:
- task: EsrpCodeSigning@5
displayName: ${{ parameters.displayName }}
inputs:
ConnectedServiceName: $(EsrpConnectedServiceName)
AppRegistrationClientId: $(EsrpAppRegistrationClientId)
AppRegistrationTenantId: $(EsrpAppRegistrationTenantId)
AuthAKVName: $(EsrpAuthAKVName)
AuthCertName: $(EsrpAuthCertName)
AuthSignCertName: $(EsrpAuthSignCertName)
SessionTimeout: '60'
MaxConcurrency: '50'
MaxRetryAttempts: '5'
${{ insert }}: ${{ parameters.inputs }}
1 change: 1 addition & 0 deletions exclusion.dic
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ Stringify
riid
Impl
microsoft
octokit
Loading

0 comments on commit 11fb693

Please sign in to comment.