Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change how "NPM packaging pipeline" downloads packages from another pipeline #17838

Merged
merged 4 commits into from
Oct 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 9 additions & 31 deletions tools/ci_build/github/azure-pipelines/npm-packaging-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,8 @@
- 'custom'
default: 'nightly (@dev)'

- name: NodePipelineId
displayName: 'Node npm package build Id'
type: string
default: 'latest'

variables:
# pipeline should define the following varaibles

Check notice on line 13 in tools/ci_build/github/azure-pipelines/npm-packaging-pipeline.yml

View workflow job for this annotation

GitHub Actions / misspell

[misspell] tools/ci_build/github/azure-pipelines/npm-packaging-pipeline.yml#L13

"varaibles" is a misspelling of "variables"
Raw output
./tools/ci_build/github/azure-pipelines/npm-packaging-pipeline.yml:13:41: "varaibles" is a misspelling of "variables"
# ExtraBuildArgs
# VersionSuffix

Expand All @@ -29,6 +24,11 @@
NpmPackagingMode: '$(VersionSuffix)'

resources:
pipelines:
- pipeline: build
source: 'Zip-Nuget-Java-Nodejs Packaging Pipeline'
trigger: true
branch: main
repositories:
- repository: manylinux
type: Github
Expand Down Expand Up @@ -65,35 +65,13 @@
runCodesignValidationInjection: false
timeoutInMinutes: 10
steps:

- ${{ if eq(parameters.NodePipelineId, 'latest') }}:
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'specific'
project: '530acbc4-21bc-487d-8cd8-348ff451d2ff'
definition: '940'
specificBuildWithTriggering: true
buildVersionToDownload: 'latestFromBranch'
branchName: 'refs/heads/main'
artifactName: 'NPM_packages'
targetPath: '$(Pipeline.Workspace)'
displayName: 'Download onnxruntime-node Pipeline Artifact'

- ${{ if ne(parameters.NodePipelineId, 'latest') }}:
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'specific'
project: '530acbc4-21bc-487d-8cd8-348ff451d2ff'
definition: '940'
buildVersionToDownload: 'specific'
pipelineId: '${{ parameters.NodePipelineId }}'
artifactName: 'NPM_packages'
targetPath: '$(Pipeline.Workspace)'
displayName: 'Download onnxruntime-node Pipeline Artifact'
- download: build
artifact: 'NPM_packages'
displayName: 'Download onnxruntime-node Pipeline Artifact'

- task: CopyFiles@2
inputs:
sourceFolder: $(Pipeline.Workspace)
sourceFolder: '$(Pipeline.Workspace)\build\NPM_packages'
contents: onnxruntime-*.tgz
targetFolder: $(Build.ArtifactStagingDirectory)\node-artifacts
displayName: 'Copy onnxruntime-node Artifacts'
Expand Down
Loading