{"action":"created","issue":{"url":"https://api.github.com/repos/groupon/DotCi/issues/11","labels_url":"https://api.github.com/repos/groupon/DotCi/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/groupon/DotCi/issues/11/comments","events_url":"https://api.github.com/repos/groupon/DotCi/issues/11/events","html_url":"https://github.com/groupon/DotCi/issues/11","id":34895674,"number":11,"title":"Integrate native support for downstream builds","user":{"login":"vvitayau","id":566629,"avatar_url":"https://avatars.githubusercontent.com/u/566629?v=3","gravatar_id":"","url":"https://api.github.com/users/vvitayau","html_url":"https://github.com/vvitayau","followers_url":"https://api.github.com/users/vvitayau/followers","following_url":"https://api.github.com/users/vvitayau/following{/other_user}","gists_url":"https://api.github.com/users/vvitayau/gists{/gist_id}","starred_url":"https://api.github.com/users/vvitayau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvitayau/subscriptions","organizations_url":"https://api.github.com/users/vvitayau/orgs","repos_url":"https://api.github.com/users/vvitayau/repos","events_url":"https://api.github.com/users/vvitayau/events{/privacy}","received_events_url":"https://api.github.com/users/vvitayau/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/groupon/DotCi/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-06-03T19:22:51Z","updated_at":"2015-11-16T20:54:12Z","closed_at":"2015-08-05T21:56:43Z","body":"Currently the only way for DotCi to initiate a downstream build is inconvenient.\r\nIt involves remotely trigger via url by passing a bunch of build parameters ...\r\n\r\n    Use the following URL to trigger build remotely: \r\n    JENKINS_URL/job/xxx/build?token=TOKEN_NAME or /buildWithParameters?token=TOKEN_NAME \r\n    Optionally append &cause=Cause+Text to provide text that will be included in the recorded build cause.\r\n\r\nIt would be nice if there was a new DotCi syntax for initiating downstream build(s).\r\nThis would resolve cases where the code repository does not contain the deployment procedures, browser testing framework, etc.\r\n\r\n    build:\r\n      [ before | run | after ]: \r\n        ...\r\n        <% if( DOTCI_BRANCH =~ /deploy_request*/) { %>\r\n        - downstream:\r\n            deploy_foo:\r\n               wait: true\r\n               params:\r\n                 sha: $SHA\r\n                 branch: $DOTCI_BRANCH \r\n                 repo: $GIT_URL\r\n                 environment: load_testing\r\n            test_bar:\r\n               wait: false\r\n               params:\r\n                 environment: load_testing\r\n                 service: foo\r\n        <% } %>\r\n        ...  \r\n\r\nI'm not sure how the syntax should be structured for sequential downstream builds versus parallel downstream builds.\r\n\r\nAlso since the above settings imply that not every branch would not invoke a downstream build.\r\nThen its representation should only appear when viewing that build number job. It would be nice to if some downstream build status icon would also appear in the left side bar by that build number.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/groupon/DotCi/issues/comments/157166874","html_url":"https://github.com/groupon/DotCi/issues/11#issuecomment-157166874","issue_url":"https://api.github.com/repos/groupon/DotCi/issues/11","id":157166874,"user":{"login":"suryagaddipati","id":64078,"avatar_url":"https://avatars.githubusercontent.com/u/64078?v=3","gravatar_id":"","url":"https://api.github.com/users/suryagaddipati","html_url":"https://github.com/suryagaddipati","followers_url":"https://api.github.com/users/suryagaddipati/followers","following_url":"https://api.github.com/users/suryagaddipati/following{/other_user}","gists_url":"https://api.github.com/users/suryagaddipati/gists{/gist_id}","starred_url":"https://api.github.com/users/suryagaddipati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suryagaddipati/subscriptions","organizations_url":"https://api.github.com/users/suryagaddipati/orgs","repos_url":"https://api.github.com/users/suryagaddipati/repos","events_url":"https://api.github.com/users/suryagaddipati/events{/privacy}","received_events_url":"https://api.github.com/users/suryagaddipati/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T20:54:12Z","updated_at":"2015-11-16T20:54:12Z","body":"@jeffbyrnes there are no upstream builds. I am not quite sure how that would work in practice . \r\n\r\nHow do you imagine that would work?"}}