I built this tool to better integrate with the real pipelines platform.
It's possible to test non-default pipelines with --yaml
flag.
It's also possible (and recommended) to provide an environment settings file with --env
flag
Download:
- MacOS:
curl -sSL -o /usr/local/bin/bitbucket-pipelines https://github.com/bivas/bitbucket-pipelines/releases/download/v0.01/bitbucket-pipelines-v0.01-darwin-amd64
- Linux:
curl -sSL -o /usr/local/bin/bitbucket-pipelines https://github.com/bivas/bitbucket-pipelines/releases/download/v0.01/bitbucket-pipelines-v0.01-linux-amd64
Known limitations:
- Docker must be running (the tool doesn't check; assumes it's running)
- Execution support only for default pipeline
- No support for branch/tag/custom pipelines
- Services aren't supported
- Only Docker service; When using docker service - the Docker in Docker image is fixed (v17)
- The tool doesn't set all of pipeline environment vars
- Setting only
BITBUCKET_COMMIT
andCI
- User provided environment is support with
--env
flag
- Setting only
- Error handling is a bit rough - some cases will simply exit the tool
- The fatal cases are:
- Failure to pull an image
- Failure to pull Docker in Docker image (when applicable)
- Failure to start an image
- Failure to copy docker binary from DnD to running container
- The fatal cases are: