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:

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:

              - git clone
              - cd demo
              - git checkout master
              - mkdir ${BITBUCKET_BUILD_NUMBER}
              - cd ..
              - mv "artifact.txt" "demo/${BITBUCKET_BUILD_NUMBER}/artifact.txt"
              - cd demo
              - git config "${ARCHIVE_COMMITTER_EMAIL}"
              - git config "${ARCHIVE_COMMITTER_NAME}"
              - git add --all
              - git commit -m "Build"
              - git push
  2. Log in to comment