How to save artifacts in Bitbucket-Pipelines

后端 未结 3 1101
我寻月下人不归
我寻月下人不归 2021-02-14 12:48

I am new to bamboo. What I try to do is collecting all .dacpac files that are created during the build process.

image: microsoft/dotnet:latest
pipe         


        
3条回答
  •  灰色年华
    2021-02-14 13:32

    Unfortunately according to the documentation all artifacts are deleted after the pipeline run:

    https://confluence.atlassian.com/bitbucket/using-artifacts-in-steps-935389074.html

    "Once a pipeline completes, whether it succeeds or fails, the artifacts are deleted."

    However you can deploy artifacts to the Bitbucket downloads section, or anywhere else:

    https://confluence.atlassian.com/bitbucket/deploy-build-artifacts-to-bitbucket-downloads-872124574.html

    - step:
        name: Archive
        script:
          - curl -X POST --user "${BB_AUTH_STRING}" "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"something/**"
    

提交回复
热议问题