File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -106,10 +106,16 @@ stages:
106
106
Write-Host "local repo is: " + $vstsCommandString
107
107
Write-Host "##$vstsCommandString"
108
108
109
- Register-PSRepository -Name local -SourceLocation $( localRepo)
109
+ Register-PSRepository -Name local -SourceLocation $localRepo
110
110
Publish-Module -Path $(signOutPath) -Repository local
111
111
displayName: Publish module to local repository
112
112
113
+ # finally publish the parts of the build which will be used in the next stages
114
+ # if it's not published, the subsequent stages will not be able to access it.
115
+ - publish : " $(signOutPath)"
116
+ artifact : build
117
+ displayName : publish build directory
118
+
113
119
- pwsh : |
114
120
$nupkgPath = "$(localRepo)"
115
121
$artifactName = "CompatPowerShellGet"
@@ -129,8 +135,6 @@ stages:
129
135
steps :
130
136
- checkout : self
131
137
- checkout : ComplianceRepo
132
- - download : current
133
- artifact : build
134
138
135
139
# use the templates in the compliance repo
136
140
# no assemblies, you should use script-module-compliance template
@@ -147,7 +151,6 @@ stages:
147
151
# selections
148
152
APIScan : false # set to false when not using Windows APIs.
149
153
150
- stages :
151
154
- stage : Publish
152
155
displayName : Publish
153
156
dependsOn : Compliance
You can’t perform that action at this time.
0 commit comments