Skip to content

Commit d57526d

Browse files
RyAuldCopilot
andcommitted
fix: replace PublishPipelineArtifact with ob_outputDirectory copy
OneBranch auto-publishes artifacts from ob_outputDirectory at job end. Explicit PublishPipelineArtifact tasks are not allowed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 336d744 commit d57526d

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

.Pipelines/pipeline-publish.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,9 @@ extends:
9999
python -m twine check dist/*
100100
displayName: 'Verify distribution (twine check)'
101101
102-
- task: PublishPipelineArtifact@1
103-
displayName: 'Publish dist/ as pipeline artifact'
104-
inputs:
105-
targetPath: dist/
106-
artifact: drop_Build_BuildDist
102+
- script: |
103+
cp -r dist/* $(ob_outputDirectory)/
104+
displayName: 'Copy dist to output directory'
107105
108106
# ========================================================================
109107
# Stage 5a - Publish to test.pypi.org (Preview / RC)

azure-pipelines.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,7 @@ extends:
107107
displayName: 'Check benchmark output exists'
108108
condition: succeededOrFailed()
109109
110-
- task: PublishPipelineArtifact@1
111-
displayName: 'Publish benchmark results'
110+
- bash: |
111+
[ -f benchmark.json ] && cp benchmark.json $(ob_outputDirectory)/
112+
displayName: 'Copy benchmark results to output'
112113
condition: and(succeededOrFailed(), eq(variables['benchmarkFileExists'], 'true'))
113-
inputs:
114-
targetPath: 'benchmark.json'
115-
artifact: 'drop_Benchmark_Benchmark'

0 commit comments

Comments
 (0)