@@ -164,7 +164,7 @@ jobs:
164
164
165
165
- job : PackageWorkers
166
166
dependsOn : ['Build_WINDOWS_X64', 'Build_WINDOWS_X86', 'Build_LINUX_X64', 'Build_OSX_X64']
167
- # condition: or(startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'), eq(variables['Build.SourceBranch'], 'refs/heads/dev'))
167
+ condition : or(startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'), eq(variables['Build.SourceBranch'], 'refs/heads/dev'))
168
168
pool :
169
169
vmImage : ' vs2017-win2016'
170
170
steps :
@@ -190,12 +190,7 @@ 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 line 198 is for testing sbom generation
194
- echo "Generating VTest Integration Test Package for $BUILD_SOURCEBRANCHNAME"
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)
196
- NUSPEC="pack\Microsoft.Azure.Functions.V3.PythonWorker.nuspec"
197
- # Only required for Integration Test. Version number contains date (e.g. 3.1.2.20211028-dev)
198
- WKVERSION="0.$LATEST_TAG-$(patchBuildNumberForDev)"
193
+ echo "No Matching Release Tag For $BUILD_SOURCEBRANCH"
199
194
fi
200
195
201
196
echo "##vso[task.setvariable variable=nuspec_path]$NUSPEC"
@@ -212,17 +207,6 @@ jobs:
212
207
BuildDropPath : ' $(Build.SourcesDirectory)'
213
208
BuildComponentPath : ' $(Build.SourcesDirectory)'
214
209
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 _manifest
225
- displayName: "after sbom generation"
226
210
- task : CopyFiles@2
227
211
inputs :
228
212
SourceFolder : ' $(Build.SourcesDirectory)\_manifest'
@@ -238,12 +222,12 @@ jobs:
238
222
inputs :
239
223
pathtoPublish : ' $(Build.ArtifactStagingDirectory)'
240
224
artifactName : ' PythonWorker'
241
- # - task: NuGetCommand@2
242
- # condition: eq(variables['UPLOADPACKAGETOPRERELEASEFEED'], true)
243
- # inputs:
244
- # command: 'push'
245
- # packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
246
- # nuGetFeedType: 'internal'
247
- # publishVstsFeed: 'e6a70c92-4128-439f-8012-382fe78d6396/f37f760c-aebd-443e-9714-ce725cd427df'
248
- # allowPackageConflicts: true
249
- # displayName: '[Integration Test] Push NuGet package to the AzureFunctionsPreRelease feed'
225
+ - task : NuGetCommand@2
226
+ condition : eq(variables['UPLOADPACKAGETOPRERELEASEFEED'], true)
227
+ inputs :
228
+ command : ' push'
229
+ packagesToPush : ' $(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
230
+ nuGetFeedType : ' internal'
231
+ publishVstsFeed : ' e6a70c92-4128-439f-8012-382fe78d6396/f37f760c-aebd-443e-9714-ce725cd427df'
232
+ allowPackageConflicts : true
233
+ displayName : ' [Integration Test] Push NuGet package to the AzureFunctionsPreRelease feed'
0 commit comments