Skip to content

Instantly share code, notes, and snippets.

View minillinim's full-sized avatar

Michael Imelfort minillinim

View GitHub Profile
@minillinim
minillinim / howto.md
Created May 10, 2017 05:43
Buildkite + monorepo + hooks

If you use a monorepo you can place a .buildkite/pipeline.yml in each of the sub repos/folders and set buildkite to look there using a pipeline command as your first step. Such as:

[[ -f "<SUB_FOLDER>/.buildkite/pipeline.yml" ]] && buildkite-agent pipeline upload <SUB_FOLDER>/.buildkite/pipeline.yml || true

Where <SUB_FOLDER> is the name of your sub repo / folder.

Unfortunately, if you try to use pre- and post-command hooks this way buildkite won't pick them up, it

GET /wls_configs/components
{
"_links": [
{
"title": "components",
"rel": "self",
"uri": "/wls_configs/components"
},
{
"title": "host",
function _load_components() {
_reset_page()
// do some magic
var links = _get_data(_WLCD_base_uri)["_links"];
$.each(links, function(idx, link) {
if ("self" !== link["rel"]) {
var title = link["title"].toUpperCase();
GET /wls_configs/machines
{
"_links": [
{
"title": "machines",
"rel": "self",
"uri": "/wls_configs/machines"
},
{
"title": "DEV99m1",