{"action":"opened","number":14,"pull_request":{"url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/pulls/14","id":70651066,"html_url":"https://github.com/jenkinsci/pipeline-utility-steps-plugin/pull/14","diff_url":"https://github.com/jenkinsci/pipeline-utility-steps-plugin/pull/14.diff","patch_url":"https://github.com/jenkinsci/pipeline-utility-steps-plugin/pull/14.patch","issue_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/issues/14","number":14,"state":"open","locked":false,"title":"[JENKINS-34927] Close streams of extracted files","user":{"login":"mkaring","id":842566,"avatar_url":"https://avatars.githubusercontent.com/u/842566?v=3","gravatar_id":"","url":"https://api.github.com/users/mkaring","html_url":"https://github.com/mkaring","followers_url":"https://api.github.com/users/mkaring/followers","following_url":"https://api.github.com/users/mkaring/following{/other_user}","gists_url":"https://api.github.com/users/mkaring/gists{/gist_id}","starred_url":"https://api.github.com/users/mkaring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkaring/subscriptions","organizations_url":"https://api.github.com/users/mkaring/orgs","repos_url":"https://api.github.com/users/mkaring/repos","events_url":"https://api.github.com/users/mkaring/events{/privacy}","received_events_url":"https://api.github.com/users/mkaring/received_events","type":"User","site_admin":false},"body":"I fixed the issue I created in JIRA by closing the output streams of the files extracted by the zip file. This resolves the issues I had with the plugin.\r\n\r\nAs the second commit I did some improvements to the general unzipping code regarding the load generated on the GC. Closing the input streams for the zip entries is not required by all means, because they are closed once the zip file closes. How ever closing the streams means that the parent zip class is able to reuse the Inflater objects that are rather expensive to create.\r\n\r\nAlso I replaced some of the code with the the counter part from `IOUtils` just to clean it up a little.\r\n\r\nIf you want to merge both my pull requests, you can also just pull in my master branch. I already resolve the merge conflict there.","created_at":"2016-05-19T08:02:46Z","updated_at":"2016-05-19T08:02:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/pulls/14/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/pulls/14/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/issues/14/comments","statuses_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/statuses/4c6890a5e963b86135c4b4a950f984b42a2f2580","head":{"label":"mkaring:feature/jenkins-34927","ref":"feature/jenkins-34927","sha":"4c6890a5e963b86135c4b4a950f984b42a2f2580","user":{"login":"mkaring","id":842566,"avatar_url":"https://avatars.githubusercontent.com/u/842566?v=3","gravatar_id":"","url":"https://api.github.com/users/mkaring","html_url":"https://github.com/mkaring","followers_url":"https://api.github.com/users/mkaring/followers","following_url":"https://api.github.com/users/mkaring/following{/other_user}","gists_url":"https://api.github.com/users/mkaring/gists{/gist_id}","starred_url":"https://api.github.com/users/mkaring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkaring/subscriptions","organizations_url":"https://api.github.com/users/mkaring/orgs","repos_url":"https://api.github.com/users/mkaring/repos","events_url":"https://api.github.com/users/mkaring/events{/privacy}","received_events_url":"https://api.github.com/users/mkaring/received_events","type":"User","site_admin":false},"repo":{"id":59141556,"name":"pipeline-utility-steps-plugin","full_name":"mkaring/pipeline-utility-steps-plugin","owner":{"login":"mkaring","id":842566,"avatar_url":"https://avatars.githubusercontent.com/u/842566?v=3","gravatar_id":"","url":"https://api.github.com/users/mkaring","html_url":"https://github.com/mkaring","followers_url":"https://api.github.com/users/mkaring/followers","following_url":"https://api.github.com/users/mkaring/following{/other_user}","gists_url":"https://api.github.com/users/mkaring/gists{/gist_id}","starred_url":"https://api.github.com/users/mkaring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkaring/subscriptions","organizations_url":"https://api.github.com/users/mkaring/orgs","repos_url":"https://api.github.com/users/mkaring/repos","events_url":"https://api.github.com/users/mkaring/events{/privacy}","received_events_url":"https://api.github.com/users/mkaring/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mkaring/pipeline-utility-steps-plugin","description":"Small utility steps for Jenkins workflows","fork":true,"url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin","forks_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/forks","keys_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/teams","hooks_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/hooks","issue_events_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/events","assignees_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/tags","blobs_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/languages","stargazers_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/stargazers","contributors_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/contributors","subscribers_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/subscribers","subscription_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/subscription","commits_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/merges","archive_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/downloads","issues_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/labels{/name}","releases_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/mkaring/pipeline-utility-steps-plugin/deployments","created_at":"2016-05-18T18:33:42Z","updated_at":"2016-05-18T18:33:43Z","pushed_at":"2016-05-18T21:59:41Z","git_url":"git://github.com/mkaring/pipeline-utility-steps-plugin.git","ssh_url":"git@github.com:mkaring/pipeline-utility-steps-plugin.git","clone_url":"https://github.com/mkaring/pipeline-utility-steps-plugin.git","svn_url":"https://github.com/mkaring/pipeline-utility-steps-plugin","homepage":null,"size":115,"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":"cb3fee8b0d829bc6b988ce82b91e40d40fdc1611","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":49442462,"name":"pipeline-utility-steps-plugin","full_name":"jenkinsci/pipeline-utility-steps-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/pipeline-utility-steps-plugin","description":"Small utility steps for Jenkins workflows","fork":true,"url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin","forks_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/forks","keys_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/teams","hooks_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/events","assignees_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/tags","blobs_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/subscription","commits_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/merges","archive_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/downloads","issues_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/deployments","created_at":"2016-01-11T17:30:15Z","updated_at":"2016-05-07T19:15:38Z","pushed_at":"2016-04-18T11:06:07Z","git_url":"git://github.com/jenkinsci/pipeline-utility-steps-plugin.git","ssh_url":"git@github.com:jenkinsci/pipeline-utility-steps-plugin.git","clone_url":"https://github.com/jenkinsci/pipeline-utility-steps-plugin.git","svn_url":"https://github.com/jenkinsci/pipeline-utility-steps-plugin","homepage":null,"size":108,"stargazers_count":7,"watchers_count":7,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/pulls/14"},"html":{"href":"https://github.com/jenkinsci/pipeline-utility-steps-plugin/pull/14"},"issue":{"href":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/issues/14"},"comments":{"href":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/pipeline-utility-steps-plugin/statuses/4c6890a5e963b86135c4b4a950f984b42a2f2580"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":15,"deletions":13,"changed_files":1}}