boomi/upload-artifact
The upload-artifact
image is used to upload artifacts (files) to Bitbucket. Supports up to 10
files totaling a maximum of 800MB
per execution.
Image includes:
Note: You must be a Boomi Technology Partner in order to use this image.
development
and release
.release
.Issue the following Docker run command with appropriate environment variables:
docker run --rm \
-v </path/to/files/to/upload>:/app \
-w /app \
-e BOOMI_TOKEN=<boomi-provided-token> \
-e ARTIFACT_NAME=<names-of-files-to-upload> \
-e ACCOUNT=<bitbucket-workspace> \
-e REPOSITORY=<bitbucket-repository-slug> \
-e DEBUG=<true-or-false> \
boomi/upload-artifact:<tag>
Note: You should replace
<>
with appropriate values as described
If you do not already have a local copy of the image, this command pulls the image automatically.
After the command runs, the program will authenticate with Boomi and, if successful, will upload desired files to the target Bitbucket Repository's Downloads
section.
This image is intended to be used within your Bitbucket repository, with Bitbucket Pipelines CI tools.
bitbucket-pipelines.yml
file: - step:
name: Upload to Bitbucket
script:
- pipe: docker://boomi/upload-artifact:release
variables:
BOOMI_TOKEN: $BOOMI_TOKEN
ARTIFACT_NAME: "build/**/*.zip"
DEBUG: 'true'
services:
- docker
Note: The values that start with a
$
are replacement variables in Bitbucket. They are used to obfuscate secrets and sensitive information.
You can adjust the configurations by passing one or more environment variables on the docker run
command line
or the variables
section of your Bitbucket Pipeline step.
Variable | Requirement | Description |
---|---|---|
BOOMI_TOKEN | Required | Token provided by the Boomi Technology Partner program. Accessible in Bitbucket pipelines with $BOOMI_TOKEN . |
ARTIFACT_NAME | Required | Path to target file(s). Can include space delimited paths and/or wild cards (* , ** ) to indicate more than one artifact. |
ACCOUNT | Required - unless in the context of a Bitbucket pipeline execution | Bitbucket Workspace (account owner) where the upload should occur. |
REPOSITORY | Required - unless in the context of a Bitbucket pipeline execution | Bitbucket repository slug where the upload should occur. |
BITBUCKET_KEY | Optional | Bitbucket Oauth Consumer Key for authenticating with Bitbucket - Not needed for officialboomi workspace. |
BITBUCKET_SECRET | Optional | Bitbucket Oauth Consumer Secret for authenticating with Bitbucket - Not needed for officialboomi workspace. |
DEBUG | Optional | Set to true to print out additional DEBUG information during execution |
docker pull boomi/upload-artifact