{"action":"opened","number":23,"pull_request":{"url":"https://api.github.com/repos/jenkinsci/pipeline-examples/pulls/23","id":68136187,"html_url":"https://github.com/jenkinsci/pipeline-examples/pull/23","diff_url":"https://github.com/jenkinsci/pipeline-examples/pull/23.diff","patch_url":"https://github.com/jenkinsci/pipeline-examples/pull/23.patch","issue_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/issues/23","number":23,"state":"open","locked":false,"title":"Using withEnv instead of modifying env.PATH","user":{"login":"batmat","id":223853,"avatar_url":"https://avatars.githubusercontent.com/u/223853?v=3","gravatar_id":"","url":"https://api.github.com/users/batmat","html_url":"https://github.com/batmat","followers_url":"https://api.github.com/users/batmat/followers","following_url":"https://api.github.com/users/batmat/following{/other_user}","gists_url":"https://api.github.com/users/batmat/gists{/gist_id}","starred_url":"https://api.github.com/users/batmat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/batmat/subscriptions","organizations_url":"https://api.github.com/users/batmat/orgs","repos_url":"https://api.github.com/users/batmat/repos","events_url":"https://api.github.com/users/batmat/events{/privacy}","received_events_url":"https://api.github.com/users/batmat/received_events","type":"User","site_admin":false},"body":"Modified to use `withEnv` instead as advised by @daniel-beck and @jglick in https://github.com/jenkinsci/pipeline-examples/pull/15.","created_at":"2016-04-27T22:31:32Z","updated_at":"2016-04-27T22:31:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/pulls/23/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/pulls/23/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/issues/23/comments","statuses_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/statuses/dec8fb1e0b14e5cb288c9bfd5b1cac4e67e4e92f","head":{"label":"batmat:maven-and-jdk-specific-version-withEnv","ref":"maven-and-jdk-specific-version-withEnv","sha":"dec8fb1e0b14e5cb288c9bfd5b1cac4e67e4e92f","user":{"login":"batmat","id":223853,"avatar_url":"https://avatars.githubusercontent.com/u/223853?v=3","gravatar_id":"","url":"https://api.github.com/users/batmat","html_url":"https://github.com/batmat","followers_url":"https://api.github.com/users/batmat/followers","following_url":"https://api.github.com/users/batmat/following{/other_user}","gists_url":"https://api.github.com/users/batmat/gists{/gist_id}","starred_url":"https://api.github.com/users/batmat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/batmat/subscriptions","organizations_url":"https://api.github.com/users/batmat/orgs","repos_url":"https://api.github.com/users/batmat/repos","events_url":"https://api.github.com/users/batmat/events{/privacy}","received_events_url":"https://api.github.com/users/batmat/received_events","type":"User","site_admin":false},"repo":{"id":50499367,"name":"workflow-examples","full_name":"batmat/workflow-examples","owner":{"login":"batmat","id":223853,"avatar_url":"https://avatars.githubusercontent.com/u/223853?v=3","gravatar_id":"","url":"https://api.github.com/users/batmat","html_url":"https://github.com/batmat","followers_url":"https://api.github.com/users/batmat/followers","following_url":"https://api.github.com/users/batmat/following{/other_user}","gists_url":"https://api.github.com/users/batmat/gists{/gist_id}","starred_url":"https://api.github.com/users/batmat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/batmat/subscriptions","organizations_url":"https://api.github.com/users/batmat/orgs","repos_url":"https://api.github.com/users/batmat/repos","events_url":"https://api.github.com/users/batmat/events{/privacy}","received_events_url":"https://api.github.com/users/batmat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/batmat/workflow-examples","description":"A collection of examples, tips and tricks and snippets of scripting for the Jenkins Workflow plugin","fork":true,"url":"https://api.github.com/repos/batmat/workflow-examples","forks_url":"https://api.github.com/repos/batmat/workflow-examples/forks","keys_url":"https://api.github.com/repos/batmat/workflow-examples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/batmat/workflow-examples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/batmat/workflow-examples/teams","hooks_url":"https://api.github.com/repos/batmat/workflow-examples/hooks","issue_events_url":"https://api.github.com/repos/batmat/workflow-examples/issues/events{/number}","events_url":"https://api.github.com/repos/batmat/workflow-examples/events","assignees_url":"https://api.github.com/repos/batmat/workflow-examples/assignees{/user}","branches_url":"https://api.github.com/repos/batmat/workflow-examples/branches{/branch}","tags_url":"https://api.github.com/repos/batmat/workflow-examples/tags","blobs_url":"https://api.github.com/repos/batmat/workflow-examples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/batmat/workflow-examples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/batmat/workflow-examples/git/refs{/sha}","trees_url":"https://api.github.com/repos/batmat/workflow-examples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/batmat/workflow-examples/statuses/{sha}","languages_url":"https://api.github.com/repos/batmat/workflow-examples/languages","stargazers_url":"https://api.github.com/repos/batmat/workflow-examples/stargazers","contributors_url":"https://api.github.com/repos/batmat/workflow-examples/contributors","subscribers_url":"https://api.github.com/repos/batmat/workflow-examples/subscribers","subscription_url":"https://api.github.com/repos/batmat/workflow-examples/subscription","commits_url":"https://api.github.com/repos/batmat/workflow-examples/commits{/sha}","git_commits_url":"https://api.github.com/repos/batmat/workflow-examples/git/commits{/sha}","comments_url":"https://api.github.com/repos/batmat/workflow-examples/comments{/number}","issue_comment_url":"https://api.github.com/repos/batmat/workflow-examples/issues/comments{/number}","contents_url":"https://api.github.com/repos/batmat/workflow-examples/contents/{+path}","compare_url":"https://api.github.com/repos/batmat/workflow-examples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/batmat/workflow-examples/merges","archive_url":"https://api.github.com/repos/batmat/workflow-examples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/batmat/workflow-examples/downloads","issues_url":"https://api.github.com/repos/batmat/workflow-examples/issues{/number}","pulls_url":"https://api.github.com/repos/batmat/workflow-examples/pulls{/number}","milestones_url":"https://api.github.com/repos/batmat/workflow-examples/milestones{/number}","notifications_url":"https://api.github.com/repos/batmat/workflow-examples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/batmat/workflow-examples/labels{/name}","releases_url":"https://api.github.com/repos/batmat/workflow-examples/releases{/id}","deployments_url":"https://api.github.com/repos/batmat/workflow-examples/deployments","created_at":"2016-01-27T10:19:31Z","updated_at":"2016-01-27T10:19:31Z","pushed_at":"2016-04-27T22:29:51Z","git_url":"git://github.com/batmat/workflow-examples.git","ssh_url":"git@github.com:batmat/workflow-examples.git","clone_url":"https://github.com/batmat/workflow-examples.git","svn_url":"https://github.com/batmat/workflow-examples","homepage":"","size":32,"stargazers_count":0,"watchers_count":0,"language":"Groovy","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":"8eb834f2706d24ae7cb1632aeb015a46eaed7c2f","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":46802503,"name":"pipeline-examples","full_name":"jenkinsci/pipeline-examples","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/pipeline-examples","description":"A collection of examples, tips and tricks and snippets of scripting for the Jenkins Pipeline plugin","fork":false,"url":"https://api.github.com/repos/jenkinsci/pipeline-examples","forks_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/forks","keys_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/teams","hooks_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/events","assignees_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/tags","blobs_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/subscription","commits_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/merges","archive_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/downloads","issues_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/releases{/id}","deployments_url":"https://api.github.com/repos/jenkinsci/pipeline-examples/deployments","created_at":"2015-11-24T16:01:44Z","updated_at":"2016-04-27T14:05:23Z","pushed_at":"2016-04-22T17:05:08Z","git_url":"git://github.com/jenkinsci/pipeline-examples.git","ssh_url":"git@github.com:jenkinsci/pipeline-examples.git","clone_url":"https://github.com/jenkinsci/pipeline-examples.git","svn_url":"https://github.com/jenkinsci/pipeline-examples","homepage":"","size":32,"stargazers_count":161,"watchers_count":161,"language":"Groovy","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":33,"mirror_url":null,"open_issues_count":4,"forks":33,"open_issues":4,"watchers":161,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/pipeline-examples/pulls/23"},"html":{"href":"https://github.com/jenkinsci/pipeline-examples/pull/23"},"issue":{"href":"https://api.github.com/repos/jenkinsci/pipeline-examples/issues/23"},"comments":{"href":"https://api.github.com/repos/jenkinsci/pipeline-examples/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/pipeline-examples/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/pipeline-examples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/pipeline-examples/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/pipeline-examples/statuses/dec8fb1e0b14e5cb288c9bfd5b1cac4e67e4e92f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":13,"deletions":12,"changed_files":2}}