Skip to content

Commit

Permalink
Merge pull request #2136 from microsoft/bilong-pipelines
Browse files Browse the repository at this point in the history
Update release pipeline
  • Loading branch information
bill-long authored Jul 15, 2024
2 parents 5c70d08 + 0592577 commit c9be9ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 42 deletions.
6 changes: 3 additions & 3 deletions azure-pipeline-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ extends:
displayName: "Spell Check"
- pwsh: |
cd .\.build
.\CodeFormatter.ps1 -Branch $env:TargetBranchName
.\CodeFormatter.ps1 -Branch main
displayName: "Code Formatting Script"
condition: and(succeeded(), ne(variables['Build.SourceBranch'], 'refs/heads/release'))
env:
Expand All @@ -39,13 +39,13 @@ extends:
displayName: "Build Script"
- pwsh: |
cd .\.build
.\Pester.ps1 -NoProgress -Branch $env:TargetBranchName
.\Pester.ps1 -NoProgress -Branch main
displayName: "Running Invoke-Pester"
env:
TargetBranchName: $(System.PullRequest.TargetBranch)
- pwsh: |
cd .\.build
.\ValidateMerge.ps1 -Branch $env:TargetBranchName
.\ValidateMerge.ps1 -Branch main
displayName: "Validate commit times"
env:
TargetBranchName: $(System.PullRequest.TargetBranch)
44 changes: 5 additions & 39 deletions azure-pipeline-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,47 +26,13 @@ extends:
cd .\.build
.\Build.ps1
displayName: "Build Script"
- task: EsrpCodeSigning@2
- task: onebranch.pipeline.signing@1
condition: and(succeeded(), ne (variables['Build.Reason'], 'PullRequest'), eq(variables['Build.SourceBranch'], 'refs/heads/release'))
inputs:
ConnectedServiceName: 'CSS Exchange Code Sign'
FolderPath: 'dist'
Pattern: '*.ps1'
signConfigType: 'inlineSignParams'
inlineOperation: |
[
{
"keyCode": "CP-230012",
"operationSetCode": "SigntoolSign",
"parameters": [
{
"parameterName": "OpusName",
"parameterValue": "CSS Exchange"
},
{
"parameterName": "OpusInfo",
"parameterValue": "https://github.com/microsoft/CSS-Exchange"
},
{
"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'
command: 'sign'
signing_profile: 'external_distribution'
files_to_sign: '*.ps1'
search_root: 'dist'
- pwsh: |
cd .\.build
.\BuildScriptVersions.ps1
Expand Down

0 comments on commit c9be9ac

Please sign in to comment.