{"action":"opened","number":461,"pull_request":{"url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/pulls/461","id":34046460,"html_url":"https://github.com/jenkinsci/job-dsl-plugin/pull/461","diff_url":"https://github.com/jenkinsci/job-dsl-plugin/pull/461.diff","patch_url":"https://github.com/jenkinsci/job-dsl-plugin/pull/461.patch","issue_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/issues/461","number":461,"state":"open","locked":false,"title":"JENKINS-28048 Injection of variables and classloader customisation","user":{"login":"dcoraboeuf","id":1206964,"avatar_url":"https://avatars.githubusercontent.com/u/1206964?v=3","gravatar_id":"","url":"https://api.github.com/users/dcoraboeuf","html_url":"https://github.com/dcoraboeuf","followers_url":"https://api.github.com/users/dcoraboeuf/followers","following_url":"https://api.github.com/users/dcoraboeuf/following{/other_user}","gists_url":"https://api.github.com/users/dcoraboeuf/gists{/gist_id}","starred_url":"https://api.github.com/users/dcoraboeuf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcoraboeuf/subscriptions","organizations_url":"https://api.github.com/users/dcoraboeuf/orgs","repos_url":"https://api.github.com/users/dcoraboeuf/repos","events_url":"https://api.github.com/users/dcoraboeuf/events{/privacy}","received_events_url":"https://api.github.com/users/dcoraboeuf/received_events","type":"User","site_admin":false},"body":"This pull request allows:\r\n\r\n* to inject arbitrary variables in a DSL script\r\n* to customise the class loader\r\n\r\nBoth features are useful when calling the `DslScriptLoader.runDslEngine` from within another plug-in.\r\n\r\nIt happens though that when calling the DSL from another plug-in, I still face the following error:\r\n\r\n```\r\njava.lang.VerifyError: (class: script1429801171807415604089, method: super$3$evaluate signature: (Ljava/lang/String;)Ljava/lang/Object;) Illegal use of nonvirtual function call\r\n    \tat java.lang.Class.getDeclaredConstructors0(Native Method)\r\n    \tat java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)\r\n    \tat java.lang.Class.getConstructor0(Class.java:3075)\r\n    \tat java.lang.Class.newInstance(Class.java:412)\r\n    \tat org.codehaus.groovy.runtime.InvokerHelper.createScript(InvokerHelper.java:408)\r\n    \tat javaposse.jobdsl.dsl.DslScriptLoader.runDslEngineForParent(DslScriptLoader.java:75)\r\n    \tat javaposse.jobdsl.dsl.DslScriptLoader.runDslEngine(DslScriptLoader.java:111)\r\n```\r\n\r\nAnd I'm still doing some investigation around this. I've already tested in both JDK7 and JDK8 without any improvement.","created_at":"2015-04-24T13:06:44Z","updated_at":"2015-04-24T13:06:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2cd2d9b833ece5de700693476c25a7a8f831ffb6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/pulls/461/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/pulls/461/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/issues/461/comments","statuses_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/statuses/a18ab9f855f7a9e4f212845625bfabb4efa2f9d7","head":{"label":"dcoraboeuf:feature/jenkins-28048","ref":"feature/jenkins-28048","sha":"a18ab9f855f7a9e4f212845625bfabb4efa2f9d7","user":{"login":"dcoraboeuf","id":1206964,"avatar_url":"https://avatars.githubusercontent.com/u/1206964?v=3","gravatar_id":"","url":"https://api.github.com/users/dcoraboeuf","html_url":"https://github.com/dcoraboeuf","followers_url":"https://api.github.com/users/dcoraboeuf/followers","following_url":"https://api.github.com/users/dcoraboeuf/following{/other_user}","gists_url":"https://api.github.com/users/dcoraboeuf/gists{/gist_id}","starred_url":"https://api.github.com/users/dcoraboeuf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcoraboeuf/subscriptions","organizations_url":"https://api.github.com/users/dcoraboeuf/orgs","repos_url":"https://api.github.com/users/dcoraboeuf/repos","events_url":"https://api.github.com/users/dcoraboeuf/events{/privacy}","received_events_url":"https://api.github.com/users/dcoraboeuf/received_events","type":"User","site_admin":false},"repo":{"id":34463690,"name":"job-dsl-plugin","full_name":"dcoraboeuf/job-dsl-plugin","owner":{"login":"dcoraboeuf","id":1206964,"avatar_url":"https://avatars.githubusercontent.com/u/1206964?v=3","gravatar_id":"","url":"https://api.github.com/users/dcoraboeuf","html_url":"https://github.com/dcoraboeuf","followers_url":"https://api.github.com/users/dcoraboeuf/followers","following_url":"https://api.github.com/users/dcoraboeuf/following{/other_user}","gists_url":"https://api.github.com/users/dcoraboeuf/gists{/gist_id}","starred_url":"https://api.github.com/users/dcoraboeuf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcoraboeuf/subscriptions","organizations_url":"https://api.github.com/users/dcoraboeuf/orgs","repos_url":"https://api.github.com/users/dcoraboeuf/repos","events_url":"https://api.github.com/users/dcoraboeuf/events{/privacy}","received_events_url":"https://api.github.com/users/dcoraboeuf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dcoraboeuf/job-dsl-plugin","description":"A Groovy DSL for Jenkins Jobs - Sweeeeet!","fork":true,"url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin","forks_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/forks","keys_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/teams","hooks_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/hooks","issue_events_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/events","assignees_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/tags","blobs_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/languages","stargazers_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/stargazers","contributors_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/contributors","subscribers_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/subscribers","subscription_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/subscription","commits_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/merges","archive_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/downloads","issues_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/labels{/name}","releases_url":"https://api.github.com/repos/dcoraboeuf/job-dsl-plugin/releases{/id}","created_at":"2015-04-23T15:09:59Z","updated_at":"2015-04-23T15:10:00Z","pushed_at":"2015-04-24T13:02:12Z","git_url":"git://github.com/dcoraboeuf/job-dsl-plugin.git","ssh_url":"git@github.com:dcoraboeuf/job-dsl-plugin.git","clone_url":"https://github.com/dcoraboeuf/job-dsl-plugin.git","svn_url":"https://github.com/dcoraboeuf/job-dsl-plugin","homepage":"","size":13872,"stargazers_count":0,"watchers_count":0,"language":"Groovy","has_issues":false,"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":"jenkinsci:master","ref":"master","sha":"0846554d020837da941a22c0946848aaeb479dc8","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":5183393,"name":"job-dsl-plugin","full_name":"jenkinsci/job-dsl-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/job-dsl-plugin","description":"A Groovy DSL for Jenkins Jobs - Sweeeeet!","fork":true,"url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin","forks_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/forks","keys_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/teams","hooks_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/events","assignees_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/tags","blobs_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/subscription","commits_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/merges","archive_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/downloads","issues_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/releases{/id}","created_at":"2012-07-25T19:17:25Z","updated_at":"2015-04-24T10:58:11Z","pushed_at":"2015-04-24T13:06:45Z","git_url":"git://github.com/jenkinsci/job-dsl-plugin.git","ssh_url":"git@github.com:jenkinsci/job-dsl-plugin.git","clone_url":"https://github.com/jenkinsci/job-dsl-plugin.git","svn_url":"https://github.com/jenkinsci/job-dsl-plugin","homepage":"","size":13872,"stargazers_count":319,"watchers_count":319,"language":"Groovy","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":185,"mirror_url":null,"open_issues_count":17,"forks":185,"open_issues":17,"watchers":319,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/pulls/461"},"html":{"href":"https://github.com/jenkinsci/job-dsl-plugin/pull/461"},"issue":{"href":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/issues/461"},"comments":{"href":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/issues/461/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/pulls/461/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/pulls/461/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/job-dsl-plugin/statuses/a18ab9f855f7a9e4f212845625bfabb4efa2f9d7"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":56,"deletions":4,"changed_files":3}}