Skip to main content

Command line utility to trigger and wait for Code build Pipeline to complete

Project description

CODEBUILD CI

Code Build Pipelines run Asynchronously and there is no provision to wait for them in bitbucket pipelines/ github actions to complete. This project will wait for Codebuild pipeline to complete and log all the log events as well. This handles any abrupt pipeline stops.

How to use


pip install codebuild-ci
python -m codebuild --project project --log-group <aws log group>

Checking for other options:

python -m codebuild --help

Integrate with Bitbucket Pipeline

- script:
    - python -m pip install codebuild-ci
    - python -m codebuild-ci --project project --log-group <aws log group>

contributing to code


You can Fork the repo and raise a PR for the active development.

Tips for testing


Stubbing Code

from botocore.stub import Stubber
# stub code
stubber = Stubber(client)
stubber.add_response('start_build', {
    'build': {
        'id': 'foo-project:foo-id'
    }
})
stubber.add_response('batch_get_builds', {
    'builds': [{
        'id': 'foo-project:foo-id',
        'buildStatus': 'SUCCEEDED'
    }]
})
stubber.activate()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codebuild_ci-0.2.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

codebuild_ci-0.2.0-py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page