Add folders to bitbucket downloads

Issue #15926 new
Eric Fischer
created an issue

When deploying to Bitbucket downloads it would be very useful to create folders, eg. for different build version. See my question here: https://community.atlassian.com/t5/Bitbucket-questions/Is-it-possible-to-add-folders-when-deploying-to-Bitbucket/qaq-p/752799#U760525

The feature could be very useful if you want to upload the artifact and a log file to Downloads under a certain build number.

Comments (4)

  1. Eric Fischer reporter

    Use the command mkdir to create one while building your main project. You pipeline config could look like:

    pipelines:
      branches:
        master:
          -step:
            script:
              - git clone git@bitbucket.org/ericfischerbav/demo.git
              - cd demo
              - git checkout master
              - mkdir ${BITBUCKET_BUILD_NUMBER}
              - cd ..
              - mv "artifact.txt" "demo/${BITBUCKET_BUILD_NUMBER}/artifact.txt"
              - cd demo
              - git config user.email "${ARCHIVE_COMMITTER_EMAIL}"
              - git config user.name "${ARCHIVE_COMMITTER_NAME}"
              - git add --all
              - git commit -m "Build"
              - git push
    
  2. Log in to comment