{"action":"created","comment":{"url":"https://api.github.com/repos/openshift/origin/pulls/comments/54882923","id":54882923,"diff_hunk":"@@ -68,10 +75,71 @@ type BuildSpec struct {\n \n \t// Optional duration in seconds, counted from the time when a build pod gets\n \t// scheduled in the system, that the build may be active on a node before the\n-\t// system actively tries to terminate the build; value must be positive integer\n+\t// system actively tries to terminate the build; value must be positive\n+\t// integer\n \tCompletionDeadlineSeconds *int64\n+\n+\t// Info is a placeholder that can store multiple reasons why a build was\n+\t// triggered. It should cover for a future implementation of level triggered\n+\t// builds where you can multiple reasons why a build was triggered.\n+\tInfo []*BuildTriggerInfo\n+}\n+\n+// BuildTriggerInfo contains information about why/who/what triggered a build.\n+type BuildTriggerInfo struct {\n+\t// Details is a placeholder for  information about who triggered a build if\n+\t// it's either a user, a token or something else\n+\tDetails BuildTriggerDetails\n+\n+\t// JenkinsJobsDetails holds details about the jenkins job that triggered this\n+\t// specific build\n+\tJenkinsJob JenkinsJobDetails","path":"pkg/build/api/types.go","position":77,"original_position":77,"commit_id":"2a1ef55539d8f3475eb82bbb298c085610bf94bb","original_commit_id":"2a1ef55539d8f3475eb82bbb298c085610bf94bb","user":{"login":"mfojtik","id":44136,"avatar_url":"https://avatars.githubusercontent.com/u/44136?v=3","gravatar_id":"","url":"https://api.github.com/users/mfojtik","html_url":"https://github.com/mfojtik","followers_url":"https://api.github.com/users/mfojtik/followers","following_url":"https://api.github.com/users/mfojtik/following{/other_user}","gists_url":"https://api.github.com/users/mfojtik/gists{/gist_id}","starred_url":"https://api.github.com/users/mfojtik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfojtik/subscriptions","organizations_url":"https://api.github.com/users/mfojtik/orgs","repos_url":"https://api.github.com/users/mfojtik/repos","events_url":"https://api.github.com/users/mfojtik/events{/privacy}","received_events_url":"https://api.github.com/users/mfojtik/received_events","type":"User","site_admin":false},"body":"@rhcarvalho me and @PI-Victor discussed this and we will probably opt-out jenkins support here for now. this should be a follow up card that will also include updating the Jenkins Plugin to set these informations. ","created_at":"2016-03-03T14:04:07Z","updated_at":"2016-03-03T14:04:07Z","html_url":"https://github.com/openshift/origin/pull/7518#discussion_r54882923","pull_request_url":"https://api.github.com/repos/openshift/origin/pulls/7518","_links":{"self":{"href":"https://api.github.com/repos/openshift/origin/pulls/comments/54882923"},"html":{"href":"https://github.com/openshift/origin/pull/7518#discussion_r54882923"},"pull_request":{"href":"https://api.github.com/repos/openshift/origin/pulls/7518"}}},"pull_request":{"url":"https://api.github.com/repos/openshift/origin/pulls/7518","id":60165268,"html_url":"https://github.com/openshift/origin/pull/7518","diff_url":"https://github.com/openshift/origin/pull/7518.diff","patch_url":"https://github.com/openshift/origin/pull/7518.patch","issue_url":"https://api.github.com/repos/openshift/origin/issues/7518","number":7518,"state":"open","locked":false,"title":"[WIP] Add build trigger information","user":{"login":"PI-Victor","id":6294120,"avatar_url":"https://avatars.githubusercontent.com/u/6294120?v=3","gravatar_id":"","url":"https://api.github.com/users/PI-Victor","html_url":"https://github.com/PI-Victor","followers_url":"https://api.github.com/users/PI-Victor/followers","following_url":"https://api.github.com/users/PI-Victor/following{/other_user}","gists_url":"https://api.github.com/users/PI-Victor/gists{/gist_id}","starred_url":"https://api.github.com/users/PI-Victor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PI-Victor/subscriptions","organizations_url":"https://api.github.com/users/PI-Victor/orgs","repos_url":"https://api.github.com/users/PI-Victor/repos","events_url":"https://api.github.com/users/PI-Victor/events{/privacy}","received_events_url":"https://api.github.com/users/PI-Victor/received_events","type":"User","site_admin":false},"body":"trello card: https://trello.com/c/wozDHSJ2/717-8-track-reason-a-build-was-run-triggered\r\n\r\nAdd build trigger information in the build object.\r\n\r\np.s. ignore the multiple commits, i'll squash\r\n\r\nSigned-off-by: pi-victor <ipalade@redhat.com>\r\n","created_at":"2016-02-22T12:22:30Z","updated_at":"2016-03-03T14:04:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"354a8ca53aca60f085eb9e96e83800cf06295bd9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openshift/origin/pulls/7518/commits","review_comments_url":"https://api.github.com/repos/openshift/origin/pulls/7518/comments","review_comment_url":"https://api.github.com/repos/openshift/origin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openshift/origin/issues/7518/comments","statuses_url":"https://api.github.com/repos/openshift/origin/statuses/2a1ef55539d8f3475eb82bbb298c085610bf94bb","head":{"label":"PI-Victor:pi-victor/track_build_trigger_reason","ref":"pi-victor/track_build_trigger_reason","sha":"2a1ef55539d8f3475eb82bbb298c085610bf94bb","user":{"login":"PI-Victor","id":6294120,"avatar_url":"https://avatars.githubusercontent.com/u/6294120?v=3","gravatar_id":"","url":"https://api.github.com/users/PI-Victor","html_url":"https://github.com/PI-Victor","followers_url":"https://api.github.com/users/PI-Victor/followers","following_url":"https://api.github.com/users/PI-Victor/following{/other_user}","gists_url":"https://api.github.com/users/PI-Victor/gists{/gist_id}","starred_url":"https://api.github.com/users/PI-Victor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PI-Victor/subscriptions","organizations_url":"https://api.github.com/users/PI-Victor/orgs","repos_url":"https://api.github.com/users/PI-Victor/repos","events_url":"https://api.github.com/users/PI-Victor/events{/privacy}","received_events_url":"https://api.github.com/users/PI-Victor/received_events","type":"User","site_admin":false},"repo":{"id":44103475,"name":"origin","full_name":"PI-Victor/origin","owner":{"login":"PI-Victor","id":6294120,"avatar_url":"https://avatars.githubusercontent.com/u/6294120?v=3","gravatar_id":"","url":"https://api.github.com/users/PI-Victor","html_url":"https://github.com/PI-Victor","followers_url":"https://api.github.com/users/PI-Victor/followers","following_url":"https://api.github.com/users/PI-Victor/following{/other_user}","gists_url":"https://api.github.com/users/PI-Victor/gists{/gist_id}","starred_url":"https://api.github.com/users/PI-Victor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PI-Victor/subscriptions","organizations_url":"https://api.github.com/users/PI-Victor/orgs","repos_url":"https://api.github.com/users/PI-Victor/repos","events_url":"https://api.github.com/users/PI-Victor/events{/privacy}","received_events_url":"https://api.github.com/users/PI-Victor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PI-Victor/origin","description":"OpenShift 3 - build, deploy, and manage your applications with Docker and Kubernetes","fork":true,"url":"https://api.github.com/repos/PI-Victor/origin","forks_url":"https://api.github.com/repos/PI-Victor/origin/forks","keys_url":"https://api.github.com/repos/PI-Victor/origin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PI-Victor/origin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PI-Victor/origin/teams","hooks_url":"https://api.github.com/repos/PI-Victor/origin/hooks","issue_events_url":"https://api.github.com/repos/PI-Victor/origin/issues/events{/number}","events_url":"https://api.github.com/repos/PI-Victor/origin/events","assignees_url":"https://api.github.com/repos/PI-Victor/origin/assignees{/user}","branches_url":"https://api.github.com/repos/PI-Victor/origin/branches{/branch}","tags_url":"https://api.github.com/repos/PI-Victor/origin/tags","blobs_url":"https://api.github.com/repos/PI-Victor/origin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PI-Victor/origin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PI-Victor/origin/git/refs{/sha}","trees_url":"https://api.github.com/repos/PI-Victor/origin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PI-Victor/origin/statuses/{sha}","languages_url":"https://api.github.com/repos/PI-Victor/origin/languages","stargazers_url":"https://api.github.com/repos/PI-Victor/origin/stargazers","contributors_url":"https://api.github.com/repos/PI-Victor/origin/contributors","subscribers_url":"https://api.github.com/repos/PI-Victor/origin/subscribers","subscription_url":"https://api.github.com/repos/PI-Victor/origin/subscription","commits_url":"https://api.github.com/repos/PI-Victor/origin/commits{/sha}","git_commits_url":"https://api.github.com/repos/PI-Victor/origin/git/commits{/sha}","comments_url":"https://api.github.com/repos/PI-Victor/origin/comments{/number}","issue_comment_url":"https://api.github.com/repos/PI-Victor/origin/issues/comments{/number}","contents_url":"https://api.github.com/repos/PI-Victor/origin/contents/{+path}","compare_url":"https://api.github.com/repos/PI-Victor/origin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PI-Victor/origin/merges","archive_url":"https://api.github.com/repos/PI-Victor/origin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PI-Victor/origin/downloads","issues_url":"https://api.github.com/repos/PI-Victor/origin/issues{/number}","pulls_url":"https://api.github.com/repos/PI-Victor/origin/pulls{/number}","milestones_url":"https://api.github.com/repos/PI-Victor/origin/milestones{/number}","notifications_url":"https://api.github.com/repos/PI-Victor/origin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PI-Victor/origin/labels{/name}","releases_url":"https://api.github.com/repos/PI-Victor/origin/releases{/id}","deployments_url":"https://api.github.com/repos/PI-Victor/origin/deployments","created_at":"2015-10-12T11:36:04Z","updated_at":"2016-01-13T09:40:44Z","pushed_at":"2016-03-03T13:34:49Z","git_url":"git://github.com/PI-Victor/origin.git","ssh_url":"git@github.com:PI-Victor/origin.git","clone_url":"https://github.com/PI-Victor/origin.git","svn_url":"https://github.com/PI-Victor/origin","homepage":"http://www.openshift.org","size":224370,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openshift:master","ref":"master","sha":"210d53cdceb4e6035014ad3b0768efd270b13340","user":{"login":"openshift","id":792337,"avatar_url":"https://avatars.githubusercontent.com/u/792337?v=3","gravatar_id":"","url":"https://api.github.com/users/openshift","html_url":"https://github.com/openshift","followers_url":"https://api.github.com/users/openshift/followers","following_url":"https://api.github.com/users/openshift/following{/other_user}","gists_url":"https://api.github.com/users/openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift/subscriptions","organizations_url":"https://api.github.com/users/openshift/orgs","repos_url":"https://api.github.com/users/openshift/repos","events_url":"https://api.github.com/users/openshift/events{/privacy}","received_events_url":"https://api.github.com/users/openshift/received_events","type":"Organization","site_admin":false},"repo":{"id":22442668,"name":"origin","full_name":"openshift/origin","owner":{"login":"openshift","id":792337,"avatar_url":"https://avatars.githubusercontent.com/u/792337?v=3","gravatar_id":"","url":"https://api.github.com/users/openshift","html_url":"https://github.com/openshift","followers_url":"https://api.github.com/users/openshift/followers","following_url":"https://api.github.com/users/openshift/following{/other_user}","gists_url":"https://api.github.com/users/openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift/subscriptions","organizations_url":"https://api.github.com/users/openshift/orgs","repos_url":"https://api.github.com/users/openshift/repos","events_url":"https://api.github.com/users/openshift/events{/privacy}","received_events_url":"https://api.github.com/users/openshift/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openshift/origin","description":"OpenShift 3 - build, deploy, and manage your applications with Docker and Kubernetes","fork":false,"url":"https://api.github.com/repos/openshift/origin","forks_url":"https://api.github.com/repos/openshift/origin/forks","keys_url":"https://api.github.com/repos/openshift/origin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openshift/origin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openshift/origin/teams","hooks_url":"https://api.github.com/repos/openshift/origin/hooks","issue_events_url":"https://api.github.com/repos/openshift/origin/issues/events{/number}","events_url":"https://api.github.com/repos/openshift/origin/events","assignees_url":"https://api.github.com/repos/openshift/origin/assignees{/user}","branches_url":"https://api.github.com/repos/openshift/origin/branches{/branch}","tags_url":"https://api.github.com/repos/openshift/origin/tags","blobs_url":"https://api.github.com/repos/openshift/origin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openshift/origin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openshift/origin/git/refs{/sha}","trees_url":"https://api.github.com/repos/openshift/origin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openshift/origin/statuses/{sha}","languages_url":"https://api.github.com/repos/openshift/origin/languages","stargazers_url":"https://api.github.com/repos/openshift/origin/stargazers","contributors_url":"https://api.github.com/repos/openshift/origin/contributors","subscribers_url":"https://api.github.com/repos/openshift/origin/subscribers","subscription_url":"https://api.github.com/repos/openshift/origin/subscription","commits_url":"https://api.github.com/repos/openshift/origin/commits{/sha}","git_commits_url":"https://api.github.com/repos/openshift/origin/git/commits{/sha}","comments_url":"https://api.github.com/repos/openshift/origin/comments{/number}","issue_comment_url":"https://api.github.com/repos/openshift/origin/issues/comments{/number}","contents_url":"https://api.github.com/repos/openshift/origin/contents/{+path}","compare_url":"https://api.github.com/repos/openshift/origin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openshift/origin/merges","archive_url":"https://api.github.com/repos/openshift/origin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openshift/origin/downloads","issues_url":"https://api.github.com/repos/openshift/origin/issues{/number}","pulls_url":"https://api.github.com/repos/openshift/origin/pulls{/number}","milestones_url":"https://api.github.com/repos/openshift/origin/milestones{/number}","notifications_url":"https://api.github.com/repos/openshift/origin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openshift/origin/labels{/name}","releases_url":"https://api.github.com/repos/openshift/origin/releases{/id}","deployments_url":"https://api.github.com/repos/openshift/origin/deployments","created_at":"2014-07-30T20:04:05Z","updated_at":"2016-03-03T09:35:33Z","pushed_at":"2016-03-03T14:03:24Z","git_url":"git://github.com/openshift/origin.git","ssh_url":"git@github.com:openshift/origin.git","clone_url":"https://github.com/openshift/origin.git","svn_url":"https://github.com/openshift/origin","homepage":"http://www.openshift.org","size":276765,"stargazers_count":1090,"watchers_count":1090,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":668,"mirror_url":null,"open_issues_count":889,"forks":668,"open_issues":889,"watchers":1090,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openshift/origin/pulls/7518"},"html":{"href":"https://github.com/openshift/origin/pull/7518"},"issue":{"href":"https://api.github.com/repos/openshift/origin/issues/7518"},"comments":{"href":"https://api.github.com/repos/openshift/origin/issues/7518/comments"},"review_comments":{"href":"https://api.github.com/repos/openshift/origin/pulls/7518/comments"},"review_comment":{"href":"https://api.github.com/repos/openshift/origin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openshift/origin/pulls/7518/commits"},"statuses":{"href":"https://api.github.com/repos/openshift/origin/statuses/2a1ef55539d8f3475eb82bbb298c085610bf94bb"}}}}