-
Notifications
You must be signed in to change notification settings - Fork 622
Create Dedicated Pipeline to Create Tarball Packages #4891
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
base: main
Are you sure you want to change the base?
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,59 @@ | ||||||
parameters: | ||||||
- name: TestRun | ||||||
displayName: 'Test Run (Will Not Create Tar Files for Rushstack)' | ||||||
type: boolean | ||||||
default: true | ||||||
|
||||||
variables: | ||||||
- name: FORCE_COLOR | ||||||
value: 1 | ||||||
- name: SourceBranch | ||||||
value: $[ replace(replace(resources.repositories.self.ref, 'refs/heads/', ''), 'refs/pull/', 'refs/remotes/pull/') ] | ||||||
|
||||||
resources: | ||||||
repositories: | ||||||
- repository: 1esPipelines | ||||||
type: git | ||||||
name: 1ESPipelineTemplates/1ESPipelineTemplates | ||||||
ref: refs/tags/release | ||||||
|
||||||
extends: | ||||||
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines | ||||||
parameters: | ||||||
pool: | ||||||
name: Azure-Pipelines-1ESPT-ExDShared | ||||||
os: windows | ||||||
stages: | ||||||
- stage: | ||||||
jobs: | ||||||
- job: | ||||||
pool: | ||||||
name: publish-rushstack-tarballs | ||||||
os: linux | ||||||
templateContext: | ||||||
outputs: | ||||||
- output: pipelineArtifact | ||||||
targetPath: $(Build.ArtifactStagingDirectory)/published-versions | ||||||
artifactName: published-versions | ||||||
Comment on lines
+29
to
+31
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is how you publish a pipeline artifact. There should be another entry like this pointing to the output folder from the |
||||||
- output: pipelineArtifact | ||||||
targetPath: $(Build.ArtifactStagingDirectory)/packages | ||||||
artifactNames: packages | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
steps: | ||||||
- checkout: self | ||||||
persistCredentials: true | ||||||
|
||||||
- template: /common/config/azure-pipelines/templates/install-node.yaml@self | ||||||
|
||||||
- template: /common/config/azure-pipelines/templates/build.yaml@self | ||||||
|
||||||
- template: /common/config/azure-pipelines/templates/bump-versions.yaml@self | ||||||
parameters: | ||||||
VersionPolicyName: noRush | ||||||
BranchName: $(SourceBranch) | ||||||
|
||||||
- script: 'node libraries/rush-lib/scripts/plugins-prepublish.js' | ||||||
displayName: 'Prepublish workaround for rush-lib' | ||||||
|
||||||
- template: /common/config/azure-pipelines/templates/publish-tarballs.yaml@self | ||||||
|
||||||
- template: /common/config/azure-pipelines/templates/record-published-versions.yaml@self |
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,7 @@ | ||||||||||||||||||||||
steps: | ||||||||||||||||||||||
- bash: > | ||||||||||||||||||||||
mkdir -p $(Build.ArtifactStagingDirectory)/packages | ||||||||||||||||||||||
displyName: 'Create Folder for Packages File' | ||||||||||||||||||||||
|
||||||||||||||||||||||
- script: 'node common/scripts/install-run-rush.js publish --publish --pack --include-all --release-folder esrp-release' | ||||||||||||||||||||||
displayName: 'Create TarBallz folder for Rush packages' | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Considering that publishing the artifact does not have any direct consequences, there's no reason to have a dryRun option for this pipeline.