1
1
steps :
2
2
3
- # TODO: Replace build artifacts with pipeline artifacts
4
- - task : DownloadBuildArtifacts@0
5
- displayName : Download build artifacts
3
+ - task : DownloadPipelineArtifact@2
6
4
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
14
7
15
8
- checkout : ComplianceRepo
16
9
17
10
# NOTE: The signing templates explicitly copy everything along as they run, so
18
11
# the last output path has every signed (and intentionally unsigned) file.
19
12
- template : EsrpSign.yml@ComplianceRepo
20
13
parameters :
21
- buildOutputPath : $(Build.ArtifactStagingDirectory)/Unsigned
22
- signOutputPath : $(Build.ArtifactStagingDirectory )/FirstPartySigned
14
+ buildOutputPath : $(Pipeline.Workspace)/PowerShellEditorServices-Build
15
+ signOutputPath : $(Pipeline.Workspace )/FirstPartySigned
23
16
alwaysCopy : true
24
17
certificateId : CP-230012 # Authenticode certificate
25
18
shouldSign : true # We always want to sign
37
30
38
31
- template : EsrpSign.yml@ComplianceRepo
39
32
parameters :
40
- buildOutputPath : $(Build.ArtifactStagingDirectory )/FirstPartySigned
41
- signOutputPath : $(Build.ArtifactStagingDirectory )/ThirdPartySigned
33
+ buildOutputPath : $(Pipeline.Workspace )/FirstPartySigned
34
+ signOutputPath : $(Pipeline.Workspace )/ThirdPartySigned
42
35
alwaysCopy : true
43
36
certificateId : CP-231522 # Third-party certificate
44
37
shouldSign : true # We always want to sign
@@ -54,14 +47,14 @@ steps:
54
47
- task : ArchiveFiles@2
55
48
displayName : Zip finished assets
56
49
inputs :
57
- rootFolderOrFile : $(Build.ArtifactStagingDirectory )/ThirdPartySigned
50
+ rootFolderOrFile : $(Pipeline.Workspace )/ThirdPartySigned
58
51
includeRootFolder : false
59
52
archiveType : zip
60
- archiveFile : $(Build.ArtifactStagingDirectory)/ PowerShellEditorServices.zip
53
+ archiveFile : PowerShellEditorServices.zip
61
54
replaceExistingArchive : true
62
55
verbose : true
63
56
64
- - publish : $(Build.ArtifactStagingDirectory)/ PowerShellEditorServices.zip
57
+ - publish : PowerShellEditorServices.zip
65
58
artifact : PowerShellEditorServices
66
59
displayName : Publish signed pipeline artifacts
67
60
@@ -70,18 +63,18 @@ steps:
70
63
- template : assembly-module-compliance.yml@ComplianceRepo
71
64
parameters :
72
65
# binskim
73
- AnalyzeTarget : ' $(Build.ArtifactStagingDirectory )/*.dll'
66
+ AnalyzeTarget : $(Pipeline.Workspace )/*.dll
74
67
AnalyzeSymPath : ' SRV*'
75
68
# component-governance
76
- sourceScanPath : ' $(Build.SourcesDirectory)/PowerShellEditorServices'
69
+ sourceScanPath : $(Build.SourcesDirectory)/PowerShellEditorServices
77
70
# credscan
78
71
suppressionsFile : ' '
79
72
# 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
82
75
optionsRulesDBPath : ' '
83
- optionsFTPath : ' $(Build.SourcesDirectory)/PowerShellEditorServices/tools/terms/FileTypeSet.xml'
76
+ optionsFTPath : $(Build.SourcesDirectory)/PowerShellEditorServices/tools/terms/FileTypeSet.xml
84
77
# tsa-upload
85
- codeBaseName : ' PowerShell_PowerShellEditorServices_20210201'
78
+ codeBaseName : PowerShell_PowerShellEditorServices_20210201
86
79
# selections
87
80
APIScan : false
0 commit comments