{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/github-integration-plugin/issues/87","repository_url":"https://api.github.com/repos/jenkinsci/github-integration-plugin","labels_url":"https://api.github.com/repos/jenkinsci/github-integration-plugin/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/github-integration-plugin/issues/87/comments","events_url":"https://api.github.com/repos/jenkinsci/github-integration-plugin/issues/87/events","html_url":"https://github.com/jenkinsci/github-integration-plugin/issues/87","id":154730109,"number":87,"title":"Jenkins 2.3 breaks env variables","user":{"login":"mikz","id":154571,"avatar_url":"https://avatars.githubusercontent.com/u/154571?v=3","gravatar_id":"","url":"https://api.github.com/users/mikz","html_url":"https://github.com/mikz","followers_url":"https://api.github.com/users/mikz/followers","following_url":"https://api.github.com/users/mikz/following{/other_user}","gists_url":"https://api.github.com/users/mikz/gists{/gist_id}","starred_url":"https://api.github.com/users/mikz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikz/subscriptions","organizations_url":"https://api.github.com/users/mikz/orgs","repos_url":"https://api.github.com/users/mikz/repos","events_url":"https://api.github.com/users/mikz/events{/privacy}","received_events_url":"https://api.github.com/users/mikz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-13T14:51:28Z","updated_at":"2016-05-13T14:54:51Z","closed_at":"2016-05-13T14:53:34Z","body":"After updating to 2.3 update because of security advisory, all our builds fail with: \r\n\r\n```\r\ngroovy.lang.MissingPropertyException: No such property: GITHUB_PR_SOURCE_BRANCH for class: Script2\r\n\tat org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:53)\r\n\tat org.codehaus.groovy.runtime.ScriptBytecodeAdapter.getProperty(ScriptBytecodeAdapter.java:458)\r\n\tat com.cloudbees.groovy.cps.sandbox.DefaultInvoker.getProperty(DefaultInvoker.java:25)\r\n\tat com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccessBlock.java:17)\r\n\tat Script2.run(Script2.groovy:39)\r\n\tat ___cps.transform___(Native Method)\r\n\tat com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.get(PropertyishBlock.java:62)\r\n\tat com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30)\r\n\tat com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.fixName(PropertyishBlock.java:54)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)\r\n\tat com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)\r\n\tat com.cloudbees.groovy.cps.Next.step(Next.java:58)\r\n\tat com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:154)\r\n\tat org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:164)\r\n\tat org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:277)\r\n\tat org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$000(CpsThreadGroup.java:77)\r\n\tat org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:186)\r\n\tat org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:184)\r\n\tat org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:47)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:262)\r\n\tat hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)\r\n\tat jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)\r\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:262)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n\tat java.lang.Thread.run(Thread.java:744)\r\n```\r\n\r\nThe build script uses GITHUB_PR_SOURCE_BRANCH to get the branch name to check out.\r\n\r\n```groovy\r\ngit branch: GITHUB_PR_SOURCE_BRANCH, credentialsId: 'uuid', url: 'git@github.com:org/repo.git'\r\n```"},"comment":{"url":"https://api.github.com/repos/jenkinsci/github-integration-plugin/issues/comments/219067108","html_url":"https://github.com/jenkinsci/github-integration-plugin/issues/87#issuecomment-219067108","issue_url":"https://api.github.com/repos/jenkinsci/github-integration-plugin/issues/87","id":219067108,"user":{"login":"mikz","id":154571,"avatar_url":"https://avatars.githubusercontent.com/u/154571?v=3","gravatar_id":"","url":"https://api.github.com/users/mikz","html_url":"https://github.com/mikz","followers_url":"https://api.github.com/users/mikz/followers","following_url":"https://api.github.com/users/mikz/following{/other_user}","gists_url":"https://api.github.com/users/mikz/gists{/gist_id}","starred_url":"https://api.github.com/users/mikz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikz/subscriptions","organizations_url":"https://api.github.com/users/mikz/orgs","repos_url":"https://api.github.com/users/mikz/repos","events_url":"https://api.github.com/users/mikz/events{/privacy}","received_events_url":"https://api.github.com/users/mikz/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T14:54:51Z","updated_at":"2016-05-13T14:54:51Z","body":"Uh. That basically means disabling the security feature?\r\n\r\nIs there a plan to make it work normally? "}}