Skip to content

Commit a3f6343

Browse files
committed
remove debug lines
1 parent 43e95f4 commit a3f6343

File tree

1 file changed

+11
-27
lines changed

1 file changed

+11
-27
lines changed

azure-pipelines.yml

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ jobs:
164164

165165
- job: PackageWorkers
166166
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'))
168168
pool:
169169
vmImage: 'vs2017-win2016'
170170
steps:
@@ -190,12 +190,7 @@ 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 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"
199194
fi
200195
201196
echo "##vso[task.setvariable variable=nuspec_path]$NUSPEC"
@@ -212,17 +207,6 @@ jobs:
212207
BuildDropPath: '$(Build.SourcesDirectory)'
213208
BuildComponentPath: '$(Build.SourcesDirectory)'
214209
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"
226210
- task: CopyFiles@2
227211
inputs:
228212
SourceFolder: '$(Build.SourcesDirectory)\_manifest'
@@ -238,12 +222,12 @@ jobs:
238222
inputs:
239223
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
240224
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

Comments
 (0)