{"action":"created","comment":{"url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/pulls/comments/59717236","id":59717236,"diff_hunk":"@@ -13,7 +13,7 @@\n \t<parent>\n \t\t<groupId>org.jenkins-ci.plugins</groupId>\n \t\t<artifactId>plugin</artifactId>\n-\t\t<version>1.509.4</version>\n+\t\t<version>1.609.1</version>","path":"pom.xml","position":5,"original_position":5,"commit_id":"e3ae1d243d0d28abf5f6bb44358c4c0fcb79d907","original_commit_id":"e3ae1d243d0d28abf5f6bb44358c4c0fcb79d907","user":{"login":"kwhetstone","id":14875282,"avatar_url":"https://avatars.githubusercontent.com/u/14875282?v=3","gravatar_id":"","url":"https://api.github.com/users/kwhetstone","html_url":"https://github.com/kwhetstone","followers_url":"https://api.github.com/users/kwhetstone/followers","following_url":"https://api.github.com/users/kwhetstone/following{/other_user}","gists_url":"https://api.github.com/users/kwhetstone/gists{/gist_id}","starred_url":"https://api.github.com/users/kwhetstone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwhetstone/subscriptions","organizations_url":"https://api.github.com/users/kwhetstone/orgs","repos_url":"https://api.github.com/users/kwhetstone/repos","events_url":"https://api.github.com/users/kwhetstone/events{/privacy}","received_events_url":"https://api.github.com/users/kwhetstone/received_events","type":"User","site_admin":false},"body":"Sounds good; sometimes getting through the test upgrade takes a bit more time.","created_at":"2016-04-14T13:35:03Z","updated_at":"2016-04-14T13:35:03Z","html_url":"https://github.com/jenkinsci/lockable-resources-plugin/pull/25#discussion_r59717236","pull_request_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/pulls/comments/59717236"},"html":{"href":"https://github.com/jenkinsci/lockable-resources-plugin/pull/25#discussion_r59717236"},"pull_request":{"href":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/pulls/25","id":62916841,"html_url":"https://github.com/jenkinsci/lockable-resources-plugin/pull/25","diff_url":"https://github.com/jenkinsci/lockable-resources-plugin/pull/25.diff","patch_url":"https://github.com/jenkinsci/lockable-resources-plugin/pull/25.patch","issue_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/issues/25","number":25,"state":"closed","locked":false,"title":"[JENKINS-30269] Add pipeline support for resource locking","user":{"login":"amuniz","id":1017585,"avatar_url":"https://avatars.githubusercontent.com/u/1017585?v=3","gravatar_id":"","url":"https://api.github.com/users/amuniz","html_url":"https://github.com/amuniz","followers_url":"https://api.github.com/users/amuniz/followers","following_url":"https://api.github.com/users/amuniz/following{/other_user}","gists_url":"https://api.github.com/users/amuniz/gists{/gist_id}","starred_url":"https://api.github.com/users/amuniz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amuniz/subscriptions","organizations_url":"https://api.github.com/users/amuniz/orgs","repos_url":"https://api.github.com/users/amuniz/repos","events_url":"https://api.github.com/users/amuniz/events{/privacy}","received_events_url":"https://api.github.com/users/amuniz/received_events","type":"User","site_admin":false},"body":"[JENKINS-30269](https://issues.jenkins-ci.org/browse/JENKINS-30269)\r\n\r\nThis PR allows to use this plugin in a Pipeline job.\r\n\r\n```groovy\r\necho 'Starting'\r\nlock('my-resource-name') {\r\n  echo 'Do something here that requires unique access to the resource'\r\n  // any other build will wait until the one locking the resource leaves this block\r\n}\r\necho 'Finish'\r\n```\r\n\r\nLockable resources are defined as Jenkins global configuration and they are shared with any other build in Jenkins using this plugin (Pipeline or not), so mutual exclusion works between Freestyle builds and Pipeline builds for example.\r\n\r\n@reviewbybees ","created_at":"2016-03-15T14:45:09Z","updated_at":"2016-04-14T13:35:03Z","closed_at":"2016-04-14T10:49:55Z","merged_at":"2016-04-14T10:49:55Z","merge_commit_sha":"466adef6c1b0212b2866f3b562a4059040a6109a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/pulls/25/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/pulls/25/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/issues/25/comments","statuses_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/statuses/e3ae1d243d0d28abf5f6bb44358c4c0fcb79d907","head":{"label":"amuniz:JENKINS-30269","ref":"JENKINS-30269","sha":"e3ae1d243d0d28abf5f6bb44358c4c0fcb79d907","user":{"login":"amuniz","id":1017585,"avatar_url":"https://avatars.githubusercontent.com/u/1017585?v=3","gravatar_id":"","url":"https://api.github.com/users/amuniz","html_url":"https://github.com/amuniz","followers_url":"https://api.github.com/users/amuniz/followers","following_url":"https://api.github.com/users/amuniz/following{/other_user}","gists_url":"https://api.github.com/users/amuniz/gists{/gist_id}","starred_url":"https://api.github.com/users/amuniz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amuniz/subscriptions","organizations_url":"https://api.github.com/users/amuniz/orgs","repos_url":"https://api.github.com/users/amuniz/repos","events_url":"https://api.github.com/users/amuniz/events{/privacy}","received_events_url":"https://api.github.com/users/amuniz/received_events","type":"User","site_admin":false},"repo":{"id":52600942,"name":"lockable-resources-plugin","full_name":"amuniz/lockable-resources-plugin","owner":{"login":"amuniz","id":1017585,"avatar_url":"https://avatars.githubusercontent.com/u/1017585?v=3","gravatar_id":"","url":"https://api.github.com/users/amuniz","html_url":"https://github.com/amuniz","followers_url":"https://api.github.com/users/amuniz/followers","following_url":"https://api.github.com/users/amuniz/following{/other_user}","gists_url":"https://api.github.com/users/amuniz/gists{/gist_id}","starred_url":"https://api.github.com/users/amuniz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amuniz/subscriptions","organizations_url":"https://api.github.com/users/amuniz/orgs","repos_url":"https://api.github.com/users/amuniz/repos","events_url":"https://api.github.com/users/amuniz/events{/privacy}","received_events_url":"https://api.github.com/users/amuniz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amuniz/lockable-resources-plugin","description":"This Jenkins plugin allows to define lockable resources (such as printers, phones, computers, etc.) that can be used by builds. If a build requires an resource which is already locked, it will wait for the resource to be free. One can define a lock-priority globally and on a per-job basis.","fork":true,"url":"https://api.github.com/repos/amuniz/lockable-resources-plugin","forks_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/forks","keys_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/teams","hooks_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/hooks","issue_events_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/events","assignees_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/tags","blobs_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/languages","stargazers_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/stargazers","contributors_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/contributors","subscribers_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/subscribers","subscription_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/subscription","commits_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/merges","archive_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/downloads","issues_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/labels{/name}","releases_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/amuniz/lockable-resources-plugin/deployments","created_at":"2016-02-26T11:47:15Z","updated_at":"2016-02-26T11:47:16Z","pushed_at":"2016-04-12T09:01:17Z","git_url":"git://github.com/amuniz/lockable-resources-plugin.git","ssh_url":"git@github.com:amuniz/lockable-resources-plugin.git","clone_url":"https://github.com/amuniz/lockable-resources-plugin.git","svn_url":"https://github.com/amuniz/lockable-resources-plugin","homepage":"","size":122,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"jenkinsci:master","ref":"master","sha":"76c93d5f4d1e366274296918d912f9f23416164d","user":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"repo":{"id":15106720,"name":"lockable-resources-plugin","full_name":"jenkinsci/lockable-resources-plugin","owner":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jenkinsci/lockable-resources-plugin","description":"This Jenkins plugin allows to define lockable resources (such as printers, phones, computers, etc.) that can be used by builds. If a build requires an resource which is already locked, it will wait for the resource to be free. One can define a lock-priority globally and on a per-job basis.","fork":true,"url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin","forks_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/forks","keys_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/teams","hooks_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/events","assignees_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/tags","blobs_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/subscription","commits_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/merges","archive_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/downloads","issues_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/deployments","created_at":"2013-12-11T12:23:19Z","updated_at":"2015-12-22T20:37:03Z","pushed_at":"2016-04-14T10:56:51Z","git_url":"git://github.com/jenkinsci/lockable-resources-plugin.git","ssh_url":"git@github.com:jenkinsci/lockable-resources-plugin.git","clone_url":"https://github.com/jenkinsci/lockable-resources-plugin.git","svn_url":"https://github.com/jenkinsci/lockable-resources-plugin","homepage":"","size":358,"stargazers_count":6,"watchers_count":6,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":12,"forks":18,"open_issues":12,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/pulls/25"},"html":{"href":"https://github.com/jenkinsci/lockable-resources-plugin/pull/25"},"issue":{"href":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/issues/25"},"comments":{"href":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/lockable-resources-plugin/statuses/e3ae1d243d0d28abf5f6bb44358c4c0fcb79d907"}}}}