This pipe creates and updates the repository release version variable
455
This pipe creates and updates the repository release version variable
Add the following snippet to the script section of your bitbucket-pipelines.yml file:
script:
- pipe: computronix/bitbucket-pipe-release-version
variables:
BITBUCKET_API_OAUTHCONSUMER_KEY: '<string>'
BITBUCKET_API_OAUTHCONSUMER_SECRET: '<string>'
| Variable | Type | Usage |
|---|---|---|
| BITBUCKET_API_OAUTHCONSUMER_KEY | Required | Oauth consumer key for the workspace |
| BITBUCKET_API_OAUTHCONSUMER_SECRET | Required | Oauth consumer secret for the workspace |
| RELEASE_VARIABLE_NAME | Optional | name of variable to create and update |
Example to create and update the repository variable RELEASE_VERSION:
script:
- pipe: computronix/bitbucket-pipe-release-version
variables:
BITBUCKET_API_OAUTHCONSUMER_KEY: '<string>'
BITBUCKET_API_OAUTHCONSUMER_SECRET: '<string>'
Or using a custom release variable MY_RELEASE_VERSION::
script:
- pipe: computronix/bitbucket-pipe-release-version
variables:
BITBUCKET_API_OAUTHCONSUMER_KEY: '<string>'
BITBUCKET_API_OAUTHCONSUMER_SECRET: '<string>'
RELEASE_VARIABLE_NAME: 'MY_RELEASE_VERSION'
If you're reporting an issue, please include:
Apache 2.0 licenced, see LICENCE file
Content type
Image
Digest
sha256:9aaa3c6b6…
Size
5.7 MB
Last updated
about 4 years ago
docker pull computronix/bitbucket-pipe-release-version:0.5.0