{"action":"created","issue":{"url":"https://api.github.com/repos/buildkite/agent/issues/205","labels_url":"https://api.github.com/repos/buildkite/agent/issues/205/labels{/name}","comments_url":"https://api.github.com/repos/buildkite/agent/issues/205/comments","events_url":"https://api.github.com/repos/buildkite/agent/issues/205/events","html_url":"https://github.com/buildkite/agent/issues/205","id":112795665,"number":205,"title":"Default executable script for dynamic pipelines","user":{"login":"toolmantim","id":153,"avatar_url":"https://avatars.githubusercontent.com/u/153?v=3","gravatar_id":"","url":"https://api.github.com/users/toolmantim","html_url":"https://github.com/toolmantim","followers_url":"https://api.github.com/users/toolmantim/followers","following_url":"https://api.github.com/users/toolmantim/following{/other_user}","gists_url":"https://api.github.com/users/toolmantim/gists{/gist_id}","starred_url":"https://api.github.com/users/toolmantim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toolmantim/subscriptions","organizations_url":"https://api.github.com/users/toolmantim/orgs","repos_url":"https://api.github.com/users/toolmantim/repos","events_url":"https://api.github.com/users/toolmantim/events{/privacy}","received_events_url":"https://api.github.com/users/toolmantim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-22T12:48:32Z","updated_at":"2015-10-27T07:01:17Z","closed_at":null,"body":"Say you had the following `.buildkite/pipeline.template.yml` file:\r\n\r\n```yml\r\nsteps:\r\n  -\r\n    name: Step 1\r\n    command: echo hola\r\n    agents:\r\n      name: \"$BUILDKITE_AGENT_META_DATA_NAME\"\r\n  -\r\n    name: Step 2\r\n    command: echo bonjour\r\n    agents:\r\n      name: \"$BUILDKITE_AGENT_META_DATA_NAME\"\r\n  -\r\n    name: Step 3\r\n    command: echo konnichiwa\r\n    agents:\r\n      name: \"$BUILDKITE_AGENT_META_DATA_NAME\"\r\n```\r\n\r\nand the following executable script in `.buildkite/pipeline`:\r\n\r\n```bash\r\n#!/bin/bash\r\n\r\nset -eu\r\n\r\n# Makes sure all the steps run on this same agent\r\nsed \"s/\\$BUILDKITE_AGENT_META_DATA_NAME/$BUILDKITE_AGENT_META_DATA_NAME/\" pipeline.template.yml\r\n```\r\n\r\nit'd be neat if the `buildkite-agent pipeline upload` detected the presence of the executable file `.buildkite/pipeline` and executed it and read in it's STDIN, basically a default/defacto way of doing generated build pipelines the same as the default location for the yml file."},"comment":{"url":"https://api.github.com/repos/buildkite/agent/issues/comments/151397424","html_url":"https://github.com/buildkite/agent/issues/205#issuecomment-151397424","issue_url":"https://api.github.com/repos/buildkite/agent/issues/205","id":151397424,"user":{"login":"lox","id":15758,"avatar_url":"https://avatars.githubusercontent.com/u/15758?v=3","gravatar_id":"","url":"https://api.github.com/users/lox","html_url":"https://github.com/lox","followers_url":"https://api.github.com/users/lox/followers","following_url":"https://api.github.com/users/lox/following{/other_user}","gists_url":"https://api.github.com/users/lox/gists{/gist_id}","starred_url":"https://api.github.com/users/lox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lox/subscriptions","organizations_url":"https://api.github.com/users/lox/orgs","repos_url":"https://api.github.com/users/lox/repos","events_url":"https://api.github.com/users/lox/events{/privacy}","received_events_url":"https://api.github.com/users/lox/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T07:01:17Z","updated_at":"2015-10-27T07:01:17Z","body":"tl;dr No, but they will support POSIX something something syntax: `${HOST_PORT-8080} or ${HOST_PORT:-8080}`"}}