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

[Ci] Support to trigger a pipeline to download and publish artifacts to storage #10820

Merged
merged 2 commits into from
May 16, 2022

Conversation

xumia
Copy link
Collaborator

@xumia xumia commented May 12, 2022

Why I did it

Support to trigger a pipeline to download and publish artifacts to storage and container registry.
Support to specify the patterns which docker images to upload.

How I did it

Pass the pipeline information and the artifact information by pipeline parameters to the pipeline which will be triggered a new build. It is to decouple the artifacts generation and the publish logic, how and where the artifacts/docker images will be published, depends on the triggered pipeline.

How to verify it

Trigger a new pipeline:

2022-05-12T12:43:24.1163401Z Found parameter artifactContext with value: {"artifactName":"sonic-buildimage.broadcom", "artifactPatterns":"**/*.bin\n
2022-05-12T12:43:24.1164110Z         **/*.swi\n
2022-05-12T12:43:24.1164377Z         **/*.raw\n
2022-05-12T12:43:24.1164840Z         **/*-rpc.gz\n
2022-05-12T12:43:24.1165296Z         **/python-saithrift*.deb"}
2022-05-12T12:43:24.1166045Z Identified value as Json Object - will use as is
2022-05-12T12:43:24.1167483Z Found parameter publishContext with value: {"publishPrefix":"xumia.official.broadcom/support-publish-docker-images-1/broadcom", "keepArtifactName":false, "dockerImagePatterns":"target/*-rpc.gz", "dockerTags":"HEAD.98650-06c14cf7f support-publish-docker-images-1", "version":"HEAD.98650-06c14cf7f", "latestTag":"201803.01"}
2022-05-12T12:43:27.7562922Z Queued new Build for definition publish-artifacts: https://dev.azure.com/mssonic/12b9cbf4-b1d3-4768-8e49-669345c32e5d/_build/results?buildId=98651

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@xumia
Copy link
Collaborator Author

xumia commented May 14, 2022

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xumia xumia merged commit 3567888 into sonic-net:master May 16, 2022
@xumia xumia deleted the support-publish-docker-images branch May 16, 2022 00:57
@xumia
Copy link
Collaborator Author

xumia commented May 16, 2022

Skipped the test "Test kvmtest-t0-sonic", the PR only changes CI pipelines, it is not a required check.

judyjoseph pushed a commit that referenced this pull request May 16, 2022
…to storage (#10820)

Why I did it
Support to trigger a pipeline to download and publish artifacts to storage and container registry.
Support to specify the patterns which docker images to upload.

How I did it
Pass the pipeline information and the artifact information by pipeline parameters to the pipeline which will be triggered a new build. It is to decouple the artifacts generation and the publish logic, how and where the artifacts/docker images will be published, depends on the triggered pipeline.

How to verify it
qiluo-msft pushed a commit that referenced this pull request May 16, 2022
…to storage (#10820)

Why I did it
Support to trigger a pipeline to download and publish artifacts to storage and container registry.
Support to specify the patterns which docker images to upload.

How I did it
Pass the pipeline information and the artifact information by pipeline parameters to the pipeline which will be triggered a new build. It is to decouple the artifacts generation and the publish logic, how and where the artifacts/docker images will be published, depends on the triggered pipeline.

How to verify it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants