bitbucket.star¶
Edit Bitbucket Pipelines: step images and pipe versions.
Edits are line-based, so comments and anchors in bitbucket-pipelines.yml stay as they were.
| Function | What it does |
|---|---|
pipes |
Lists the pipes the pipeline uses, with their versions. |
bump_pipe |
Moves a pipe to a new version. |
bump_image |
Moves the default or a step's image from one tag to another, keeping variants. |
pipes¶
Lists the pipes the pipeline uses, with their versions.
Arguments
| Name | Description |
|---|---|
repo |
The repo passed to change(repo). |
Returns: The sorted, de-duplicated name:version strings.
Example
Used in: bitbucket-pipes
bump_pipe¶
Moves a pipe to a new version.
Arguments
| Name | Description |
|---|---|
repo |
The repo passed to change(repo). |
pipe |
The pipe, such as atlassian/aws-s3-deploy. |
version |
The new version, such as 1.6.1. |
from_ref |
When set, only this exact version is replaced. |
Returns: The list of paths that changed.
Example
Used in: bitbucket-pipes
bump_image¶
Moves the default or a step's image from one tag to another, keeping variants.
Arguments
| Name | Description |
|---|---|
repo |
The repo passed to change(repo). |
image |
The image name, such as node. |
from_tag |
The tag to replace. |
to_tag |
The tag to put in its place. |
Returns: The list of paths that changed.
Example
Used in: bitbucket-pipes