Skip to content

Commit a946390

Browse files
committed
revert back to | form instead of > form for bash usage
1 parent e8e2092 commit a946390

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

eng/pipelines/templates/stages/archetype-python-release.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ stages:
9696
- task: UsePythonVersion@0
9797
inputs:
9898
versionSpec: '3.9'
99-
- script: >
99+
- script: |
100100
set -e
101101
102102
python -m pip install -r eng/release_requirements.txt
@@ -114,7 +114,7 @@ stages:
114114
inputs:
115115
artifactFeeds: ${{parameters.DevFeedName}}
116116

117-
- pwsh: >
117+
- pwsh: |
118118
$esrpDirectory = "$(Pipeline.Workspace)/esrp-release/${{parameters.ArtifactName}}/${{artifact.name}}"
119119
120120
New-Item -ItemType Directory -Force -Path $esrpDirectory
@@ -139,7 +139,7 @@ stages:
139139
MainPublisher: 'ESRPRELPACMANTEST'
140140
DomainTenantId: '72f988bf-86f1-41af-91ab-2d7cd011db47'
141141

142-
- script: >
142+
- script: |
143143
set -e
144144
145145
twine upload --repository ${{parameters.DevFeedName}} --config-file $(PYPIRC_PATH) $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}}/*.whl
@@ -164,7 +164,7 @@ stages:
164164
deploy:
165165
steps:
166166
- checkout: self
167-
- pwsh: >
167+
- pwsh: |
168168
Get-ChildItem -Recurse $(Pipeline.Workspace)/${{parameters.DocArtifact}}/${{artifact.name}}
169169
workingDirectory: $(Pipeline.Workspace)
170170
displayName: Output Visible Artifacts
@@ -282,21 +282,21 @@ stages:
282282
DevFeedName: ${{ parameters.DevFeedName }}
283283

284284
- ${{ each artifact in parameters.Artifacts }}:
285-
- ${{if ne(artifact.skipPublishDevFeed, 'true')}}:
286-
- pwsh: >
287-
$fileCount = (Get-ChildItem $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}} | ? {$_.Name -match "-[0-9]*.[0-9]*.[0-9]*a[0-9]*" } | Measure-Object).Count
285+
- ${{if ne(artifact.skipPublishDevFeed, 'true')}}:
286+
- pwsh: >
287+
$fileCount = (Get-ChildItem $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}} | ? {$_.Name -match "-[0-9]*.[0-9]*.[0-9]*a[0-9]*" } | Measure-Object).Count
288288
289-
if ($fileCount -eq 0) {
290-
Write-Host "No alpha packages for ${{artifact.name}} to publish."
291-
exit 0
292-
}
289+
if ($fileCount -eq 0) {
290+
Write-Host "No alpha packages for ${{artifact.name}} to publish."
291+
exit 0
292+
}
293293
294-
twine upload --repository $(DevFeedName) --config-file $(PYPIRC_PATH) $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}}/*-*a*.whl
295-
echo "Uploaded whl to devops feed $(DevFeedName)"
296-
twine upload --repository $(DevFeedName) --config-file $(PYPIRC_PATH) $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}}/*-*a*.tar.gz
294+
twine upload --repository $(DevFeedName) --config-file $(PYPIRC_PATH) $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}}/*-*a*.whl
295+
echo "Uploaded whl to devops feed $(DevFeedName)"
297296
298-
echo "Uploaded sdist to devops feed $(DevFeedName)"
299-
displayName: 'Publish ${{artifact.name}} alpha package'
297+
twine upload --repository $(DevFeedName) --config-file $(PYPIRC_PATH) $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}}/*-*a*.tar.gz
298+
echo "Uploaded sdist to devops feed $(DevFeedName)"
299+
displayName: 'Publish ${{artifact.name}} alpha package'
300300
301301
- job: PublishDocsToNightlyBranch
302302
dependsOn: PublishPackages

0 commit comments

Comments
 (0)