Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-18422

Pipeline Artifact not Updated (Overwritten)

    XMLWordPrintable

Details

    Description

      Hello

      I am having a pipeline which has to build my application several times for each environment and it seems that bitbucket is not updating the artifacts in consequent builds.

      The result is that I end up trying to publish my testing artifact to staging environment.

      Here is my pipeline outline:

      --> (build front + build back) --> deploy testing --> (build front + build back) --> deploy staging

      The second deploy fails since the artifact it receives is the one from testing.

      Is there a way to tell bitbucket to discard previous artifacts ?
      Is there a way to overwrite the previous artifacts ?

      Thank you for your help

      "{release/*,hotfix/*}":
           
            - parallel:
                - step:
                    name: "[Back] Lint -> Build -> Test"
                    script:
                      - export STAGE=integration
                      - build.sh
                    artifacts:
                      - "**/dist/**"
                    caches:
                      - lerna
                - step:
                    name: "[Front] Lint -> Build -> Test"
                    script:
                      - export STAGE=integration
                      - build-front.sh
                    artifacts:
                      - "**/dist/**"
                    caches:
                      - lerna
      
            - step:
                name: "[ALL] Deploy -> integration"
                trigger: manual
                deployment: test
                script:
                  - export STAGE=integration
                  - deploy.sh
                caches:
                  - lerna
      
            - parallel:
                - step:
                    name: "[Back] Build"
                    script:
                      - export STAGE=preproduction
                      - build.sh
                    artifacts:
                      - "**/dist/**"
                    caches:
                      - lerna
                - step:
                    name: "[Front] Build"
                    script:
                      - export STAGE=preproduction
                      - build-front.sh
                    artifacts:
                      - "**/dist/**"
                    caches:
                      - lerna
      
            - step:
                name: "[ALL] Deploy -> preproduction"
                trigger: manual
                deployment: staging
                script:
                  - export STAGE=preproduction
                  - deploy.sh
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            08b7bba86b5e Alexander KIRILOV
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: