{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/promoted-builds-plugin/issues/75","labels_url":"https://api.github.com/repos/jenkinsci/promoted-builds-plugin/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/promoted-builds-plugin/issues/75/comments","events_url":"https://api.github.com/repos/jenkinsci/promoted-builds-plugin/issues/75/events","html_url":"https://github.com/jenkinsci/promoted-builds-plugin/pull/75","id":118173443,"number":75,"title":"Add support for running promotions on inheritance projects.","user":{"login":"J-cztery","id":4555794,"avatar_url":"https://avatars.githubusercontent.com/u/4555794?v=3","gravatar_id":"","url":"https://api.github.com/users/J-cztery","html_url":"https://github.com/J-cztery","followers_url":"https://api.github.com/users/J-cztery/followers","following_url":"https://api.github.com/users/J-cztery/following{/other_user}","gists_url":"https://api.github.com/users/J-cztery/gists{/gist_id}","starred_url":"https://api.github.com/users/J-cztery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/J-cztery/subscriptions","organizations_url":"https://api.github.com/users/J-cztery/orgs","repos_url":"https://api.github.com/users/J-cztery/repos","events_url":"https://api.github.com/users/J-cztery/events{/privacy}","received_events_url":"https://api.github.com/users/J-cztery/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-21T06:12:25Z","updated_at":"2015-11-21T13:14:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jenkinsci/promoted-builds-plugin/pulls/75","html_url":"https://github.com/jenkinsci/promoted-builds-plugin/pull/75","diff_url":"https://github.com/jenkinsci/promoted-builds-plugin/pull/75.diff","patch_url":"https://github.com/jenkinsci/promoted-builds-plugin/pull/75.patch"},"body":"This pull request contains an implementation of extension point to jenkins-inheritance-project-plugin and some changes to JobPropertyImpl construction to allow for interaction with jenkins-inheritance-project-plugin. \r\nA new constructor has been added that allows reading promotion processes information from the location specified by an existing JobPropertyImpl but makes the JobPropertyImpl instance (and it's promotion processes) independent otherwise. \r\n\r\nInitially I wanted to keep this extension separate (as a plugin) but this proved too difficult because of the hermetization of JobPropertyImpl and its insistence on loading promotion processes on construction. \r\n\r\nNote that there is a problem in jenkins-inheritance-project-plugin and there is an accompanying fix to jenkins-inheritance-project-plugin plugin. That problem prevents from seeing promotions that are currently running. There might be some problems with getting it merged to mainline, so you might want to use my fork directly https://github.com/J-cztery/jenkins-inheritance-plugin. \r\n\r\nThis change introduces optional dependency to jenkins-inheritance-project. \r\n\r\nIt supersedes the following pull requests: \r\nhttps://github.com/jenkinsci/promoted-builds-plugin/pull/74\r\nhttps://github.com/jenkinsci/promoted-builds-plugin/pull/51 (thanks David Tanner for inspiration). \r\n"},"comment":{"url":"https://api.github.com/repos/jenkinsci/promoted-builds-plugin/issues/comments/158639145","html_url":"https://github.com/jenkinsci/promoted-builds-plugin/pull/75#issuecomment-158639145","issue_url":"https://api.github.com/repos/jenkinsci/promoted-builds-plugin/issues/75","id":158639145,"user":{"login":"J-cztery","id":4555794,"avatar_url":"https://avatars.githubusercontent.com/u/4555794?v=3","gravatar_id":"","url":"https://api.github.com/users/J-cztery","html_url":"https://github.com/J-cztery","followers_url":"https://api.github.com/users/J-cztery/followers","following_url":"https://api.github.com/users/J-cztery/following{/other_user}","gists_url":"https://api.github.com/users/J-cztery/gists{/gist_id}","starred_url":"https://api.github.com/users/J-cztery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/J-cztery/subscriptions","organizations_url":"https://api.github.com/users/J-cztery/orgs","repos_url":"https://api.github.com/users/J-cztery/repos","events_url":"https://api.github.com/users/J-cztery/events{/privacy}","received_events_url":"https://api.github.com/users/J-cztery/received_events","type":"User","site_admin":false},"created_at":"2015-11-21T13:14:42Z","updated_at":"2015-11-21T13:14:42Z","body":"@oleg-nenashev: regarding the test. I struggle to write an unit tests that uses multiple plugins. Any ideas on how to set it up?"}}