Configure Bitbucket Artifact Credentials
Spinnaker stages that read data from artifacts can read Bitbucket files directly.
If the files are hidden behind basic auth, you can configure an artifact account with the needed credentials to read your artifact.
Prerequisites
- Collect your basic auth
$USERNAME
and$PASSWORD
- Pick a
$USERNAME_PASSWORD_FILE
location on your disk -
Run:
echo ${USERNAME}:${PASSWORD} > $USERNAME_PASSWORD_FILE
Edit your artifact settings
-
Collect the
$USERNAME_PASSWORD_FILE
value returned from the prerequisites section above. -
Make sure that artifact support is enabled:
hal config features edit --artifacts true hal config artifact bitbucket enable
-
Add an artifact account:
hal config artifact bitbucket account add my-bitbucket-account \ --username-password-file $USERNAME_PASSWORD_FILE
There are more options described here if you need more control over your configuration.