{- "id": 1234567890,
- "name": "jimmy",
- "email": "jimmy@example.com"
}
""
Create a new job for the given project
project_id required | string |
{- "project_id": "core/nginx"
}
{- "id": "73089155726360582",
- "state": 0
}
{- "id": "73089155726360582",
- "origin": "core",
- "project": "nginx",
- "version": "1.0.0",
- "release": "20170505001756",
- "state": "Complete",
- "created_at": "2017-05-05 00:42:35.213765+00",
- "build_started_at": "2017-05-05 00:43:11.729835+00",
- "build_finished_at": "2017-05-05 00:44:00.896919+00"
}
Get the build log (or a portion thereof) for the
given job. Until an SSE endpoint can be implemented,
this endpoint can be used to poll for the logs of a
currently-running job; use of the start
query
parameter ensures that only the portion of the log
that is "new", relative to a prior request, will be
retrieved.
jobId required | string |
start | integer >= 0 Default: 0 Return the portion of the log output that
starts at the zero-indexed line
specified. A request with no given value
defaults to |
color | boolean Default: false Whether or not to include embedded ANSI color codes in the log output. By default, all ANSI sequences are removed, yielding plain output. The following values are interpreted as
The following values are interpreted as
All other values are considered |
"{\n \"start\": 0,\n \"stop\": 2,\n \"content\": [\n \"this is the first line\",\n \"this is the second line\"\n ],\n is_complete: false\n}\n"
Retrieves the list of reverse dependencies for this package, collated into build groups that can be build in parallel
name required | string |
origin required | string |
{- "origin": "core",
- "name": "linux-headers",
- "rdeps": [
- {
- "group": 0,
- "idents": [
- "core/redis",
- "core/protobuf"
]
}, - {
- "group": 1,
- "idents": [
- "core/node"
]
}
]
}
Creates a new project for building a Habitat plan scoped to the given origin. The
resulting project will be created with an identifier containing the origin and name
of the project the plan is building separated by a forward slash (i.e. core/nginx
).
origin required | string |
plan_path required | string |
required | object |
{- "origin": "core",
- "plan_path": "components/builder-api/plan.sh",
- "installation_id": 1234,
- "repo_id": 4567
}
{- "id": "habitat/builder-api",
- "plan_path": "components/builder-api/plan.sh",
}
Update the project matching the given ID
origin required | string |
name required | string |
id required | string |
plan_path required | string |
required | object |
{- "plan_path": "components/builder-api/plan.sh",
- "github": {
- "organization": "habitat-sh",
- "repo": "habitat"
}
}
Toggle the visibility settings on a project. Public projects that are made private will change to hidden instead. Changes made to a project's visibility settings will cascade to its packages.
visibility required | string |
origin required | string |
name required | string |
Retrieve the most recently started jobs for the given project.
origin required | string |
name required | string |
{- "range_start": 0,
- "range_end": 5,
- "total_count": 6,
- "data": [
- {
- "id": "73089155726360582",
- "origin": "core",
- "project": "nginx",
- "version": "1.0.0",
- "release": "20170505001756",
- "state": "Complete",
- "created_at": "2017-05-05 00:42:35.213765+00",
- "build_started_at": "2017-05-05 00:43:11.729835+00",
- "build_finished_at": "2017-05-05 00:44:00.896919+00"
}
]
}
Create a new origin
id | integer |
name | string |
owner_id | string |
default_package_visibility | string Enum: "Public" "Private" |
{- "name": "reset",
- "default_package_visibility": "public"
}
{- "id": "77732030103691265",
- "name": "reset",
- "owner_id": "77730215748435968",
- "default_package_visibility": "public"
}
Create or update an origin project integration
integrationName required | string |
origin required | string |
{- "docker_hub_repo_name": "myorg/myrepo",
- "custom_tag": "some-tag",
- "latest_tag": true,
- "version_tag": false,
- "version_release_tag": true
}
originId required | string |
id | integer |
name | string |
owner_id | string |
default_package_visibility | string Enum: "Public" "Private" |
"{\n \"id\": \"77732030103691265\",\n \"name\": \"reset\",\n \"owner_id\": \"77730215748435968\"\n \"default_package_visibility\": \"public\"\n}\n"
Return a list of key revisions for an organization.
originId required | string |
[- {
- "origin": "core",
- "revision": "20160423193732",
- "location": "/origins/core/keys/20160423193732"
}, - {
- "origin": "core",
- "revision": "20160423193733",
- "location": "/origins/core/keys/20160423193733"
}
]
Upload a new key revision for an origin
revision required | string |
originId required | string |
SIG-PUB-1 core-20160423193745 Jpmj1gD9oTFCgz3wSLltt/QB6RTmNRWoUTe+xhDTIHc=
Returns all versions and a count of releases for each version for a given package
name required | string |
origin required | string |
[- {
- "origin": "core",
- "name": "redis",
- "version": "3.2.1",
- "release_count": "3",
- "latest": "20170215222111"
}
]
List all packages in a channel
channel required | string |
origin required | string |
{- "range_start": 0,
- "range_end": 49,
- "total_count": 8,
- "data": [
- {
- "origin": "core",
- "name": "glibc",
- "version": "2.22",
- "release": "20160612063629"
}, - {
- "origin": "core",
- "name": "linux-headers",
- "version": "4.3",
- "release": "20160612063537"
}
]
}
Get the latest version of the package in this channel that matches the specified identifier
pkg required | string |
channel required | string |
origin required | string |
{- "checksum": "7a998b6a756f7ca769ac75edf66c119d14aa911d7cfb5fd91ad3ff21ddf0d257",
- "config": "",
- "deps": [
- {
- "name": "glibc",
- "origin": "core",
- "release": "20160612063629",
- "version": "2.22"
}
], - "exposes": [ ],
- "ident": {
- "name": "tree",
- "origin": "core",
- "release": "20161102210957",
- "version": "1.7.0"
}, - "manifest": "# core / tree\n\n\n* __Maintainer__: The Habitat Maintainers <humans@habitat.sh>\n* __Version__: 1.7.0\n* __Release__: 20161102210957\n* __Architecture__: x86_64\n* __System__: linux\n* __Target__: x86_64-linux\n* __Upstream URL__: upstream project's website or home page is not defined\n* __License__: gplv2+ \n* __Source__: [http://mama.indstate.edu/users/ice/tree/src/tree-1.7.0.tgz](http://mama.indstate.edu/users/ice/tree/src/tree-1.7.0.tgz)\n* __SHA__: `6957c20e82561ac4231638996e74f4cfa4e6faabc5a2f511f0b4e3940e8f7b12`\n* __Path__: `/hab/pkgs/core/tree/1.7.0/20161102210957`\n* __Build Dependencies__: `core/make core/gcc `\n* __Dependencies__: `core/glibc `\n* __Interpreters__: no interpreters or undefined\n\n# Plan\n\n## Build Flags\n\n```bash\nCFLAGS: -I/hab/pkgs/core/glibc/2.22/20160612063629/include -I/hab/pkgs/core/make/4.2.1/20161102154828/include -I/hab/pkgs/core/gcc/5.2.0/20161031031637/include\nCPPFLAGS: -I/hab/pkgs/core/glibc/2.22/20160612063629/include -I/hab/pkgs/core/make/4.2.1/20161102154828/include -I/hab/pkgs/core/gcc/5.2.0/20161031031637/include\nCXXFLAGS: -I/hab/pkgs/core/glibc/2.22/20160612063629/include -I/hab/pkgs/core/make/4.2.1/20161102154828/include -I/hab/pkgs/core/gcc/5.2.0/20161031031637/include\nLDFLAGS: -L/hab/pkgs/core/glibc/2.22/20160612063629/lib -L/hab/pkgs/core/gcc/5.2.0/20161031031637/lib\nLD_RUN_PATH: /hab/pkgs/core/tree/1.7.0/20161102210957/lib:/hab/pkgs/core/glibc/2.22/20160612063629/lib\n```\n\n## Plan Source\n\n```bash\npkg_name=tree\npkg_origin=core\npkg_version=1.7.0\npkg_maintainer=\"The Habitat Maintainers <humans@habitat.sh>\"\npkg_license=('gplv2+')\npkg_source=http://mama.indstate.edu/users/ice/tree/src/tree-${pkg_version}.tgz\npkg_shasum=6957c20e82561ac4231638996e74f4cfa4e6faabc5a2f511f0b4e3940e8f7b12\npkg_deps=(core/glibc)\npkg_build_deps=(core/make core/gcc)\npkg_bin_dirs=(bin)\npkg_include_dirs=(include)\npkg_lib_dirs=(lib)\n\ndo_build() {\n make\n}\n\ndo_install() {\n sed -i \"s#prefix = /usr#prefix = ${pkg_prefix}#\" Makefile\n make install\n}\n```",
- "tdeps": [
- {
- "name": "glibc",
- "origin": "core",
- "release": "20160612063629",
- "version": "2.22"
}, - {
- "name": "linux-headers",
- "origin": "core",
- "release": "20160612063537",
- "version": "4.3"
}
]
}