11steps :
22
3- # TODO: Replace build artifacts with pipeline artifacts
4- - task : DownloadBuildArtifacts@0
5- displayName : Download build artifacts
3+ - task : DownloadPipelineArtifact@2
64 inputs :
7- downloadType : specific
8-
9- - task : ExtractFiles@1
10- displayName : Unzip build artifacts
11- inputs :
12- archiveFilePatterns : $(Build.ArtifactStagingDirectory)/PowerShellEditorServices-CI/PowerShellEditorServices*.zip
13- destinationFolder : $(Build.ArtifactStagingDirectory)/Unsigned
5+ path : PowerShellEditorServices-Build
6+ displayName : Download unsigned pipeline artifacts
147
158- checkout : ComplianceRepo
169
1710# NOTE: The signing templates explicitly copy everything along as they run, so
1811# the last output path has every signed (and intentionally unsigned) file.
1912- template : EsrpSign.yml@ComplianceRepo
2013 parameters :
21- buildOutputPath : $(Build.ArtifactStagingDirectory)/Unsigned
22- signOutputPath : $(Build.ArtifactStagingDirectory )/FirstPartySigned
14+ buildOutputPath : $(Pipeline.Workspace)/PowerShellEditorServices-Build
15+ signOutputPath : $(Pipeline.Workspace )/FirstPartySigned
2316 alwaysCopy : true
2417 certificateId : CP-230012 # Authenticode certificate
2518 shouldSign : true # We always want to sign
3730
3831 - template : EsrpSign.yml@ComplianceRepo
3932 parameters :
40- buildOutputPath : $(Build.ArtifactStagingDirectory )/FirstPartySigned
41- signOutputPath : $(Build.ArtifactStagingDirectory )/ThirdPartySigned
33+ buildOutputPath : $(Pipeline.Workspace )/FirstPartySigned
34+ signOutputPath : $(Pipeline.Workspace )/ThirdPartySigned
4235 alwaysCopy : true
4336 certificateId : CP-231522 # Third-party certificate
4437 shouldSign : true # We always want to sign
@@ -54,14 +47,14 @@ steps:
5447 - task : ArchiveFiles@2
5548 displayName : Zip finished assets
5649 inputs :
57- rootFolderOrFile : $(Build.ArtifactStagingDirectory )/ThirdPartySigned
50+ rootFolderOrFile : $(Pipeline.Workspace )/ThirdPartySigned
5851 includeRootFolder : false
5952 archiveType : zip
60- archiveFile : $(Build.ArtifactStagingDirectory)/ PowerShellEditorServices.zip
53+ archiveFile : PowerShellEditorServices.zip
6154 replaceExistingArchive : true
6255 verbose : true
6356
64- - publish : $(Build.ArtifactStagingDirectory)/ PowerShellEditorServices.zip
57+ - publish : PowerShellEditorServices.zip
6558 artifact : PowerShellEditorServices
6659 displayName : Publish signed pipeline artifacts
6760
@@ -70,18 +63,18 @@ steps:
7063- template : assembly-module-compliance.yml@ComplianceRepo
7164 parameters :
7265 # binskim
73- AnalyzeTarget : ' $(Build.ArtifactStagingDirectory )/*.dll'
66+ AnalyzeTarget : $(Pipeline.Workspace )/*.dll
7467 AnalyzeSymPath : ' SRV*'
7568 # component-governance
76- sourceScanPath : ' $(Build.SourcesDirectory)/PowerShellEditorServices'
69+ sourceScanPath : $(Build.SourcesDirectory)/PowerShellEditorServices
7770 # credscan
7871 suppressionsFile : ' '
7972 # TermCheck AKA PoliCheck
80- targetArgument : ' $(Build.SourcesDirectory)/PowerShellEditorServices'
81- optionsUEPATH : ' $(Build.SourcesDirectory)/PowerShellEditorServices/tools/terms/UserExclusions.xml'
73+ targetArgument : $(Build.SourcesDirectory)/PowerShellEditorServices
74+ optionsUEPATH : $(Build.SourcesDirectory)/PowerShellEditorServices/tools/terms/UserExclusions.xml
8275 optionsRulesDBPath : ' '
83- optionsFTPath : ' $(Build.SourcesDirectory)/PowerShellEditorServices/tools/terms/FileTypeSet.xml'
76+ optionsFTPath : $(Build.SourcesDirectory)/PowerShellEditorServices/tools/terms/FileTypeSet.xml
8477 # tsa-upload
85- codeBaseName : ' PowerShell_PowerShellEditorServices_20210201'
78+ codeBaseName : PowerShell_PowerShellEditorServices_20210201
8679 # selections
8780 APIScan : false
0 commit comments