{"action":"created","comment":{"url":"https://api.github.com/repos/ci-team/jjb-library/pulls/comments/116173270","pull_request_review_id":37775359,"id":116173270,"diff_hunk":"@@ -0,0 +1,40 @@\n+- trigger:\n+    # Base trigger for pull-requests\n+    #\n+    # Poll BitBucket server and trigger job on\n+    # newly created requests or changed ones.\n+    #\n+    # This is shortened version of original trigger with recommended\n+    # default values.\n+    #\n+    # Parameters:\n+    #\n+    # timer           how often to poll server in cron fmt,\n+    # base-url        base url of your server, fe http://git.my.com/\n+    # project         name of project (short key) to check\n+    # repo            name of repo (slug) to check\n+    # branch          name of branch to check\n+    # credentials-id  credentials from Jenkins credentials to use for\n+    #                 polling BitBucket API (login+password)\n+\n+    name: library/bitbucket/pr-trigger\n+\n+    triggers:\n+    - stash:\n+        spec: '{timer}'\n+        cron: '{timer}'\n+        stash_host: '{web-url}'\n+        project_code: '{project}'\n+        repository_name: '{repo}'\n+        credentials-id: '{credentials-id}'\n+        ci_skip_phrases: 'NO TEST'\n+        ci_build_phrases: 'test this please'\n+        target_branches_to_build: '{branch}'\n+        ignore_ssl: 'true'","path":"library/macros/bitbucket/pr-trigger.yaml","position":33,"original_position":33,"commit_id":"11b71f0321451ed32daa5b9e27e726e36afbc7d9","original_commit_id":"11b71f0321451ed32daa5b9e27e726e36afbc7d9","user":{"login":"bgaifullin","id":5380830,"avatar_url":"https://avatars0.githubusercontent.com/u/5380830?v=3","gravatar_id":"","url":"https://api.github.com/users/bgaifullin","html_url":"https://github.com/bgaifullin","followers_url":"https://api.github.com/users/bgaifullin/followers","following_url":"https://api.github.com/users/bgaifullin/following{/other_user}","gists_url":"https://api.github.com/users/bgaifullin/gists{/gist_id}","starred_url":"https://api.github.com/users/bgaifullin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgaifullin/subscriptions","organizations_url":"https://api.github.com/users/bgaifullin/orgs","repos_url":"https://api.github.com/users/bgaifullin/repos","events_url":"https://api.github.com/users/bgaifullin/events{/privacy}","received_events_url":"https://api.github.com/users/bgaifullin/received_events","type":"User","site_admin":false},"body":"in published ignore_ssl is true, here is false.\r\nit would be better if this parameter will be also configurable. ","created_at":"2017-05-12T08:11:21Z","updated_at":"2017-05-12T08:13:17Z","html_url":"https://github.com/ci-team/jjb-library/pull/12#discussion_r116173270","pull_request_url":"https://api.github.com/repos/ci-team/jjb-library/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/ci-team/jjb-library/pulls/comments/116173270"},"html":{"href":"https://github.com/ci-team/jjb-library/pull/12#discussion_r116173270"},"pull_request":{"href":"https://api.github.com/repos/ci-team/jjb-library/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/ci-team/jjb-library/pulls/12","id":120156020,"html_url":"https://github.com/ci-team/jjb-library/pull/12","diff_url":"https://github.com/ci-team/jjb-library/pull/12.diff","patch_url":"https://github.com/ci-team/jjb-library/pull/12.patch","issue_url":"https://api.github.com/repos/ci-team/jjb-library/issues/12","number":12,"state":"open","locked":false,"title":"Add set of BitBucket macros","user":{"login":"akaRem","id":1472728,"avatar_url":"https://avatars2.githubusercontent.com/u/1472728?v=3","gravatar_id":"","url":"https://api.github.com/users/akaRem","html_url":"https://github.com/akaRem","followers_url":"https://api.github.com/users/akaRem/followers","following_url":"https://api.github.com/users/akaRem/following{/other_user}","gists_url":"https://api.github.com/users/akaRem/gists{/gist_id}","starred_url":"https://api.github.com/users/akaRem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akaRem/subscriptions","organizations_url":"https://api.github.com/users/akaRem/orgs","repos_url":"https://api.github.com/users/akaRem/repos","events_url":"https://api.github.com/users/akaRem/events{/privacy}","received_events_url":"https://api.github.com/users/akaRem/received_events","type":"User","site_admin":false},"body":"This patch provides initial set of macros for CI\r\nfolks tied to BitBucket Server.\r\n\r\nThis set includes:\r\n- Pull Request Trigger (pr-trigger)\r\n- Pull Request SCM (pr-scm)\r\n- Pull Request Parameters (pr-parameters)\r\n- Pull Request Publisher (pr-publisher)\r\n- BitBucket adapter for using with generic build. blocks\r\n\r\nMinimal example is provided as reference for\r\nbuilding own jobs.\r\n\r\nPatch also includes brief explanation of architecture.","created_at":"2017-05-11T17:04:36Z","updated_at":"2017-05-12T08:13:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"edf63f2233251364771841ba325eebe23f8cb57d","assignee":{"login":"akaRem","id":1472728,"avatar_url":"https://avatars2.githubusercontent.com/u/1472728?v=3","gravatar_id":"","url":"https://api.github.com/users/akaRem","html_url":"https://github.com/akaRem","followers_url":"https://api.github.com/users/akaRem/followers","following_url":"https://api.github.com/users/akaRem/following{/other_user}","gists_url":"https://api.github.com/users/akaRem/gists{/gist_id}","starred_url":"https://api.github.com/users/akaRem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akaRem/subscriptions","organizations_url":"https://api.github.com/users/akaRem/orgs","repos_url":"https://api.github.com/users/akaRem/repos","events_url":"https://api.github.com/users/akaRem/events{/privacy}","received_events_url":"https://api.github.com/users/akaRem/received_events","type":"User","site_admin":false},"assignees":[{"login":"akaRem","id":1472728,"avatar_url":"https://avatars2.githubusercontent.com/u/1472728?v=3","gravatar_id":"","url":"https://api.github.com/users/akaRem","html_url":"https://github.com/akaRem","followers_url":"https://api.github.com/users/akaRem/followers","following_url":"https://api.github.com/users/akaRem/following{/other_user}","gists_url":"https://api.github.com/users/akaRem/gists{/gist_id}","starred_url":"https://api.github.com/users/akaRem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akaRem/subscriptions","organizations_url":"https://api.github.com/users/akaRem/orgs","repos_url":"https://api.github.com/users/akaRem/repos","events_url":"https://api.github.com/users/akaRem/events{/privacy}","received_events_url":"https://api.github.com/users/akaRem/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"mrjj","id":315967,"avatar_url":"https://avatars2.githubusercontent.com/u/315967?v=3","gravatar_id":"","url":"https://api.github.com/users/mrjj","html_url":"https://github.com/mrjj","followers_url":"https://api.github.com/users/mrjj/followers","following_url":"https://api.github.com/users/mrjj/following{/other_user}","gists_url":"https://api.github.com/users/mrjj/gists{/gist_id}","starred_url":"https://api.github.com/users/mrjj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrjj/subscriptions","organizations_url":"https://api.github.com/users/mrjj/orgs","repos_url":"https://api.github.com/users/mrjj/repos","events_url":"https://api.github.com/users/mrjj/events{/privacy}","received_events_url":"https://api.github.com/users/mrjj/received_events","type":"User","site_admin":false},{"login":"bookwar","id":738798,"avatar_url":"https://avatars2.githubusercontent.com/u/738798?v=3","gravatar_id":"","url":"https://api.github.com/users/bookwar","html_url":"https://github.com/bookwar","followers_url":"https://api.github.com/users/bookwar/followers","following_url":"https://api.github.com/users/bookwar/following{/other_user}","gists_url":"https://api.github.com/users/bookwar/gists{/gist_id}","starred_url":"https://api.github.com/users/bookwar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bookwar/subscriptions","organizations_url":"https://api.github.com/users/bookwar/orgs","repos_url":"https://api.github.com/users/bookwar/repos","events_url":"https://api.github.com/users/bookwar/events{/privacy}","received_events_url":"https://api.github.com/users/bookwar/received_events","type":"User","site_admin":false},{"login":"SergK","id":1520525,"avatar_url":"https://avatars2.githubusercontent.com/u/1520525?v=3","gravatar_id":"","url":"https://api.github.com/users/SergK","html_url":"https://github.com/SergK","followers_url":"https://api.github.com/users/SergK/followers","following_url":"https://api.github.com/users/SergK/following{/other_user}","gists_url":"https://api.github.com/users/SergK/gists{/gist_id}","starred_url":"https://api.github.com/users/SergK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergK/subscriptions","organizations_url":"https://api.github.com/users/SergK/orgs","repos_url":"https://api.github.com/users/SergK/repos","events_url":"https://api.github.com/users/SergK/events{/privacy}","received_events_url":"https://api.github.com/users/SergK/received_events","type":"User","site_admin":false},{"login":"ibelikov","id":5197196,"avatar_url":"https://avatars2.githubusercontent.com/u/5197196?v=3","gravatar_id":"","url":"https://api.github.com/users/ibelikov","html_url":"https://github.com/ibelikov","followers_url":"https://api.github.com/users/ibelikov/followers","following_url":"https://api.github.com/users/ibelikov/following{/other_user}","gists_url":"https://api.github.com/users/ibelikov/gists{/gist_id}","starred_url":"https://api.github.com/users/ibelikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibelikov/subscriptions","organizations_url":"https://api.github.com/users/ibelikov/orgs","repos_url":"https://api.github.com/users/ibelikov/repos","events_url":"https://api.github.com/users/ibelikov/events{/privacy}","received_events_url":"https://api.github.com/users/ibelikov/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ci-team/jjb-library/pulls/12/commits","review_comments_url":"https://api.github.com/repos/ci-team/jjb-library/pulls/12/comments","review_comment_url":"https://api.github.com/repos/ci-team/jjb-library/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ci-team/jjb-library/issues/12/comments","statuses_url":"https://api.github.com/repos/ci-team/jjb-library/statuses/11b71f0321451ed32daa5b9e27e726e36afbc7d9","head":{"label":"akaRem:set-of-bb-macroses","ref":"set-of-bb-macroses","sha":"11b71f0321451ed32daa5b9e27e726e36afbc7d9","user":{"login":"akaRem","id":1472728,"avatar_url":"https://avatars2.githubusercontent.com/u/1472728?v=3","gravatar_id":"","url":"https://api.github.com/users/akaRem","html_url":"https://github.com/akaRem","followers_url":"https://api.github.com/users/akaRem/followers","following_url":"https://api.github.com/users/akaRem/following{/other_user}","gists_url":"https://api.github.com/users/akaRem/gists{/gist_id}","starred_url":"https://api.github.com/users/akaRem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akaRem/subscriptions","organizations_url":"https://api.github.com/users/akaRem/orgs","repos_url":"https://api.github.com/users/akaRem/repos","events_url":"https://api.github.com/users/akaRem/events{/privacy}","received_events_url":"https://api.github.com/users/akaRem/received_events","type":"User","site_admin":false},"repo":{"id":90296761,"name":"jjb-library","full_name":"akaRem/jjb-library","owner":{"login":"akaRem","id":1472728,"avatar_url":"https://avatars2.githubusercontent.com/u/1472728?v=3","gravatar_id":"","url":"https://api.github.com/users/akaRem","html_url":"https://github.com/akaRem","followers_url":"https://api.github.com/users/akaRem/followers","following_url":"https://api.github.com/users/akaRem/following{/other_user}","gists_url":"https://api.github.com/users/akaRem/gists{/gist_id}","starred_url":"https://api.github.com/users/akaRem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akaRem/subscriptions","organizations_url":"https://api.github.com/users/akaRem/orgs","repos_url":"https://api.github.com/users/akaRem/repos","events_url":"https://api.github.com/users/akaRem/events{/privacy}","received_events_url":"https://api.github.com/users/akaRem/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akaRem/jjb-library","description":null,"fork":true,"url":"https://api.github.com/repos/akaRem/jjb-library","forks_url":"https://api.github.com/repos/akaRem/jjb-library/forks","keys_url":"https://api.github.com/repos/akaRem/jjb-library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akaRem/jjb-library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akaRem/jjb-library/teams","hooks_url":"https://api.github.com/repos/akaRem/jjb-library/hooks","issue_events_url":"https://api.github.com/repos/akaRem/jjb-library/issues/events{/number}","events_url":"https://api.github.com/repos/akaRem/jjb-library/events","assignees_url":"https://api.github.com/repos/akaRem/jjb-library/assignees{/user}","branches_url":"https://api.github.com/repos/akaRem/jjb-library/branches{/branch}","tags_url":"https://api.github.com/repos/akaRem/jjb-library/tags","blobs_url":"https://api.github.com/repos/akaRem/jjb-library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akaRem/jjb-library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akaRem/jjb-library/git/refs{/sha}","trees_url":"https://api.github.com/repos/akaRem/jjb-library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akaRem/jjb-library/statuses/{sha}","languages_url":"https://api.github.com/repos/akaRem/jjb-library/languages","stargazers_url":"https://api.github.com/repos/akaRem/jjb-library/stargazers","contributors_url":"https://api.github.com/repos/akaRem/jjb-library/contributors","subscribers_url":"https://api.github.com/repos/akaRem/jjb-library/subscribers","subscription_url":"https://api.github.com/repos/akaRem/jjb-library/subscription","commits_url":"https://api.github.com/repos/akaRem/jjb-library/commits{/sha}","git_commits_url":"https://api.github.com/repos/akaRem/jjb-library/git/commits{/sha}","comments_url":"https://api.github.com/repos/akaRem/jjb-library/comments{/number}","issue_comment_url":"https://api.github.com/repos/akaRem/jjb-library/issues/comments{/number}","contents_url":"https://api.github.com/repos/akaRem/jjb-library/contents/{+path}","compare_url":"https://api.github.com/repos/akaRem/jjb-library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akaRem/jjb-library/merges","archive_url":"https://api.github.com/repos/akaRem/jjb-library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akaRem/jjb-library/downloads","issues_url":"https://api.github.com/repos/akaRem/jjb-library/issues{/number}","pulls_url":"https://api.github.com/repos/akaRem/jjb-library/pulls{/number}","milestones_url":"https://api.github.com/repos/akaRem/jjb-library/milestones{/number}","notifications_url":"https://api.github.com/repos/akaRem/jjb-library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akaRem/jjb-library/labels{/name}","releases_url":"https://api.github.com/repos/akaRem/jjb-library/releases{/id}","deployments_url":"https://api.github.com/repos/akaRem/jjb-library/deployments","created_at":"2017-05-04T18:33:12Z","updated_at":"2017-05-04T18:25:26Z","pushed_at":"2017-05-11T20:27:36Z","git_url":"git://github.com/akaRem/jjb-library.git","ssh_url":"git@github.com:akaRem/jjb-library.git","clone_url":"https://github.com/akaRem/jjb-library.git","svn_url":"https://github.com/akaRem/jjb-library","homepage":null,"size":16,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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":"ci-team:master","ref":"master","sha":"e07b08499e933364d1eeff6900ef1f05e9aaae95","user":{"login":"ci-team","id":24829513,"avatar_url":"https://avatars1.githubusercontent.com/u/24829513?v=3","gravatar_id":"","url":"https://api.github.com/users/ci-team","html_url":"https://github.com/ci-team","followers_url":"https://api.github.com/users/ci-team/followers","following_url":"https://api.github.com/users/ci-team/following{/other_user}","gists_url":"https://api.github.com/users/ci-team/gists{/gist_id}","starred_url":"https://api.github.com/users/ci-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ci-team/subscriptions","organizations_url":"https://api.github.com/users/ci-team/orgs","repos_url":"https://api.github.com/users/ci-team/repos","events_url":"https://api.github.com/users/ci-team/events{/privacy}","received_events_url":"https://api.github.com/users/ci-team/received_events","type":"Organization","site_admin":false},"repo":{"id":90296042,"name":"jjb-library","full_name":"ci-team/jjb-library","owner":{"login":"ci-team","id":24829513,"avatar_url":"https://avatars1.githubusercontent.com/u/24829513?v=3","gravatar_id":"","url":"https://api.github.com/users/ci-team","html_url":"https://github.com/ci-team","followers_url":"https://api.github.com/users/ci-team/followers","following_url":"https://api.github.com/users/ci-team/following{/other_user}","gists_url":"https://api.github.com/users/ci-team/gists{/gist_id}","starred_url":"https://api.github.com/users/ci-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ci-team/subscriptions","organizations_url":"https://api.github.com/users/ci-team/orgs","repos_url":"https://api.github.com/users/ci-team/repos","events_url":"https://api.github.com/users/ci-team/events{/privacy}","received_events_url":"https://api.github.com/users/ci-team/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ci-team/jjb-library","description":null,"fork":false,"url":"https://api.github.com/repos/ci-team/jjb-library","forks_url":"https://api.github.com/repos/ci-team/jjb-library/forks","keys_url":"https://api.github.com/repos/ci-team/jjb-library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ci-team/jjb-library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ci-team/jjb-library/teams","hooks_url":"https://api.github.com/repos/ci-team/jjb-library/hooks","issue_events_url":"https://api.github.com/repos/ci-team/jjb-library/issues/events{/number}","events_url":"https://api.github.com/repos/ci-team/jjb-library/events","assignees_url":"https://api.github.com/repos/ci-team/jjb-library/assignees{/user}","branches_url":"https://api.github.com/repos/ci-team/jjb-library/branches{/branch}","tags_url":"https://api.github.com/repos/ci-team/jjb-library/tags","blobs_url":"https://api.github.com/repos/ci-team/jjb-library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ci-team/jjb-library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ci-team/jjb-library/git/refs{/sha}","trees_url":"https://api.github.com/repos/ci-team/jjb-library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ci-team/jjb-library/statuses/{sha}","languages_url":"https://api.github.com/repos/ci-team/jjb-library/languages","stargazers_url":"https://api.github.com/repos/ci-team/jjb-library/stargazers","contributors_url":"https://api.github.com/repos/ci-team/jjb-library/contributors","subscribers_url":"https://api.github.com/repos/ci-team/jjb-library/subscribers","subscription_url":"https://api.github.com/repos/ci-team/jjb-library/subscription","commits_url":"https://api.github.com/repos/ci-team/jjb-library/commits{/sha}","git_commits_url":"https://api.github.com/repos/ci-team/jjb-library/git/commits{/sha}","comments_url":"https://api.github.com/repos/ci-team/jjb-library/comments{/number}","issue_comment_url":"https://api.github.com/repos/ci-team/jjb-library/issues/comments{/number}","contents_url":"https://api.github.com/repos/ci-team/jjb-library/contents/{+path}","compare_url":"https://api.github.com/repos/ci-team/jjb-library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ci-team/jjb-library/merges","archive_url":"https://api.github.com/repos/ci-team/jjb-library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ci-team/jjb-library/downloads","issues_url":"https://api.github.com/repos/ci-team/jjb-library/issues{/number}","pulls_url":"https://api.github.com/repos/ci-team/jjb-library/pulls{/number}","milestones_url":"https://api.github.com/repos/ci-team/jjb-library/milestones{/number}","notifications_url":"https://api.github.com/repos/ci-team/jjb-library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ci-team/jjb-library/labels{/name}","releases_url":"https://api.github.com/repos/ci-team/jjb-library/releases{/id}","deployments_url":"https://api.github.com/repos/ci-team/jjb-library/deployments","created_at":"2017-05-04T18:25:26Z","updated_at":"2017-05-05T07:43:02Z","pushed_at":"2017-05-11T20:27:37Z","git_url":"git://github.com/ci-team/jjb-library.git","ssh_url":"git@github.com:ci-team/jjb-library.git","clone_url":"https://github.com/ci-team/jjb-library.git","svn_url":"https://github.com/ci-team/jjb-library","homepage":null,"size":6,"stargazers_count":2,"watchers_count":2,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ci-team/jjb-library/pulls/12"},"html":{"href":"https://github.com/ci-team/jjb-library/pull/12"},"issue":{"href":"https://api.github.com/repos/ci-team/jjb-library/issues/12"},"comments":{"href":"https://api.github.com/repos/ci-team/jjb-library/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/ci-team/jjb-library/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/ci-team/jjb-library/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ci-team/jjb-library/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/ci-team/jjb-library/statuses/11b71f0321451ed32daa5b9e27e726e36afbc7d9"}}}}
{"actor":{"display_login":"bgaifullin"}}