@@ -190,30 +190,39 @@ jobs:
190
190
# Only required for Integration Test. Version number contains date (e.g. 3.1.2.20211028-dev)
191
191
WKVERSION="3.$LATEST_TAG-$(patchBuildNumberForDev)"
192
192
else
193
- # Line 194 to 199 to be commeneted out except when we need
194
- # to test something from personal feature branch
195
- echo "Generating V3 Integration Test Package for $BUILD_SOURCEBRANCHNAME"
193
+ # line 194 to line 198 is for testing sbom generation
194
+ echo "Generating VTest Integration Test Package for $BUILD_SOURCEBRANCHNAME"
196
195
LATEST_TAG=$(curl https://api.github.com/repos/Azure/azure-functions-python-worker/tags -s | jq '.[0].name' | sed 's/\"//g' | cut -d'.' -f-2)
197
196
NUSPEC="pack\Microsoft.Azure.Functions.V3.PythonWorker.nuspec"
198
197
# Only required for Integration Test. Version number contains date (e.g. 3.1.2.20211028-dev)
199
- WKVERSION="0.$LATEST_TAG-$(patchBuildNumberForDev)"
200
- echo "No Matching Release Tag For $BUILD_SOURCEBRANCH"
198
+ WKVERSION="0.$LATEST_TAG-$(patchBuildNumberForDev)"
201
199
fi
202
200
203
201
echo "##vso[task.setvariable variable=nuspec_path]$NUSPEC"
204
202
echo "##vso[task.setvariable variable=worker_version]$WKVERSION"
205
203
displayName: "Generate Worker NuGet Package for Release $BUILD_SOURCEBRANCHNAME"
206
- - task : ManifestGeneratorTask@0
207
- displayName : ' SBOM Generation Task'
208
- inputs :
209
- BuildDropPath : ' $(Build.SourcesDirectory)'
210
- BuildComponentPath : ' $(Build.SourcesDirectory)'
211
- Verbosity : ' Verbose'
212
204
- task : DownloadBuildArtifacts@0
213
205
inputs :
214
206
buildType : ' current'
215
207
downloadType : ' specific'
216
208
downloadPath : ' $(Build.SourcesDirectory)'
209
+ - task : ManifestGeneratorTask@0
210
+ displayName : ' SBOM Generation Task'
211
+ inputs :
212
+ BuildDropPath : ' $(Build.SourcesDirectory)\pack'
213
+ BuildComponentPath : ' $(Build.SourcesDirectory)\pack'
214
+ Verbosity : ' Verbose'
215
+ - bash : |
216
+ # Write your commands here
217
+
218
+ echo 'Hello world'
219
+ echo 'before copy >> build sources dir: '
220
+ ls -la $BUILD_SOURCESDIRECTORY
221
+ cd $BUILD_SOURCESDIRECTORY
222
+ echo 'after copy >> build sources dir/pack: '
223
+ ls -la pack
224
+ ls -la pack/_manifest
225
+ displayName: "after sbom generation"
217
226
- task : NuGetCommand@2
218
227
inputs :
219
228
command : pack
@@ -224,14 +233,23 @@ jobs:
224
233
inputs :
225
234
pathtoPublish : ' $(Build.ArtifactStagingDirectory)'
226
235
artifactName : ' PythonWorker'
227
- # - task: DropValidatorTask@0
228
- # displayName: 'Drop validation Task'
229
- # inputs:
230
- # BuildDropPath: '$(Build.ArtifactStagingDirectory)'
231
- # ManifestPath: '$(Build.ArtifactStagingDirectory)'
232
- # OutputPath: '$(Build.ArtifactStagingDirectory)'
233
- # ValidateSignature: false
234
- # Verbosity: 'Verbose'
236
+ - bash : |
237
+ # Write your commands here
238
+
239
+ echo 'Hello world'
240
+ echo 'before copy >> build artifact dir: '
241
+ ls -la $BUILD_ARTIFACTSTAGINGDIRECTORY
242
+ cd $BUILD_ARTIFACTSTAGINGDIRECTORY
243
+ echo 'after copy >> build artifact dir/pack: '
244
+ ls -la pack
245
+ - task : DropValidatorTask@0
246
+ displayName : ' Drop validation Task'
247
+ inputs :
248
+ BuildDropPath : ' $(Build.ArtifactStagingDirectory)'
249
+ ManifestPath : ' $(Build.ArtifactStagingDirectory)\pack'
250
+ OutputPath : ' $(Build.ArtifactStagingDirectory)'
251
+ ValidateSignature : false
252
+ Verbosity : ' Verbose'
235
253
# - task: NuGetCommand@2
236
254
# condition: eq(variables['UPLOADPACKAGETOPRERELEASEFEED'], true)
237
255
# inputs:
0 commit comments