Skip to content

Commit 157e807

Browse files
committed
update
1 parent d91ca6f commit 157e807

File tree

1 file changed

+37
-19
lines changed

1 file changed

+37
-19
lines changed

azure-pipelines.yml

Lines changed: 37 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -190,30 +190,39 @@ jobs:
190190
# Only required for Integration Test. Version number contains date (e.g. 3.1.2.20211028-dev)
191191
WKVERSION="3.$LATEST_TAG-$(patchBuildNumberForDev)"
192192
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"
196195
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)
197196
NUSPEC="pack\Microsoft.Azure.Functions.V3.PythonWorker.nuspec"
198197
# 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)"
201199
fi
202200
203201
echo "##vso[task.setvariable variable=nuspec_path]$NUSPEC"
204202
echo "##vso[task.setvariable variable=worker_version]$WKVERSION"
205203
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'
212204
- task: DownloadBuildArtifacts@0
213205
inputs:
214206
buildType: 'current'
215207
downloadType: 'specific'
216208
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"
217226
- task: NuGetCommand@2
218227
inputs:
219228
command: pack
@@ -224,14 +233,23 @@ jobs:
224233
inputs:
225234
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
226235
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'
235253
#- task: NuGetCommand@2
236254
# condition: eq(variables['UPLOADPACKAGETOPRERELEASEFEED'], true)
237255
# inputs:

0 commit comments

Comments
 (0)