ContinuityApp

Create a Suite Dependency

You can attach an existing dependency to a Suite. Every time a Suite will spawn a build, the dependency will be available in the Build environment.

Auth&ACL

Both users and collaborators can access this API, via OAuth suites scope (or HTTP Basic Authentication for development purposes).

Definition

POST https://v1.continuityapp.ws/projects/<project_id>/suites/<suite_id>/dependencies

Arguments

Arguments    
dependency_id Required The dependency ID to attach to the Suite.

Example request

In this example we will attach a Dependency to a Suite.

$ curl https://v1.continuityapp.ws/projects/123456789123456780/suites/123456789123456789/dependencies?oauth_token=<access_token> \
    -d "dependency_id=123456789123456780"
    -X POST

Returns

The attached dependency summary will be returned.

Example response

{
  "response": {
    "id": 123456789123456780,
    "id_ref": "123456789123456780",
    "name": "memcached-1.4.15",
    "launch_command": "memcached -d"
  }
}

Notes

You cannot attach a dependecy whose prefix has already been used by an other one already attached.

Errors

This API has an additional error code available:

Errors    
403 already_exists The dependency prefix has already been used by an other dependency attached to this Suite.
comments powered by Disqus