HTTPS SSH

Build Status hook service

Only BitBucket is supported.

It's only a DEV version and its purpose is BitBucket Build API absence in Shippable.

Installation (BitBucket integration)

  • Create OAuth consumer in BitBucket with "Repository:write", see BitBucket's guide.

  • Create file config/oauth.ini and add OAuth credentials from BitBucket.

[yourAccountName]
client_id = "key"
client_secret = "secret"
  • Deploy the app on a public server where you can call it from Shippable (see Examples).

Examples

shippable.yml

before_script:
  - curl "http://example.com/build-status/bitbucket.php?repository=$REPO_NAME&revision=$COMMIT&buildId=$SHIPPABLE_BUILD_ID&key=SHIPPABLE&name=Shippable&url=$BUILD_URL&description=&state=INPROGRESS"

after_success:
  - curl "http://example.com/build-status/bitbucket.php?repository=$REPO_NAME&revision=$COMMIT&buildId=$SHIPPABLE_BUILD_ID&key=SHIPPABLE&name=Shippable&url=$BUILD_URL&description=&state=SUCCESSFUL"

after_failure:
  - curl "http://example.com/build-status/bitbucket.php?repository=$REPO_NAME&revision=$COMMIT&buildId=$SHIPPABLE_BUILD_ID&key=SHIPPABLE&name=Shippable&url=$BUILD_URL&description=&state=FAILED"