[JIRA] (JENKINS-42882) GitSCMFile::content() doesn't handle symlinks

4 views
Skip to first unread message

bernhard.miklautz@shacknet.at (JIRA)

unread,
Mar 17, 2017, 9:50:01 AM3/17/17
to jenkinsc...@googlegroups.com
Bernhard Miklautz updated an issue
 
Jenkins / Bug JENKINS-42882
GitSCMFile::content() doesn't handle symlinks
Change By: Bernhard Miklautz
Summary: GitSCMFile::content() doesn't handle symlink symlinks
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

mark.earl.waite@gmail.com (JIRA)

unread,
Mar 17, 2017, 9:52:06 AM3/17/17
to jenkinsc...@googlegroups.com
Mark Waite assigned an issue to Unassigned
Change By: Mark Waite
Assignee: Mark Waite

mark.earl.waite@gmail.com (JIRA)

unread,
Mar 20, 2017, 12:59:02 AM3/20/17
to jenkinsc...@googlegroups.com
Mark Waite commented on Bug JENKINS-42882
 
Re: GitSCMFile::content() doesn't handle symlinks

Thanks for the clear steps to reproduce the issue. I've created a 42882 branch in my jenkins-bugs repository which shows the problem. That branch is evaluated in my docker-lfs configuration. Patches are welcomed to fix the bug...

omer.van.kloeten@gmail.com (JIRA)

unread,
Mar 22, 2017, 4:11:01 AM3/22/17
to jenkinsc...@googlegroups.com

+1 to this issue, just hit it myself. 

For reference, when Jenkinsfile is symlinked to ci/build.groovy, this is what I'm seeing:

Obtained Jenkinsfile from f5035722844a5de1222dfaba340171ca060f3c6b
[Pipeline] End of Pipeline
groovy.lang.MissingPropertyException: No such property: ci for class: groovy.lang.Binding
at groovy.lang.Binding.getVariable(Binding.java:63)
at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:224)
at org.kohsuke.groovy.sandbox.impl.Checker$4.call(Checker.java:241)
at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:238)
at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.getProperty(SandboxInvoker.java:28)
at com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccessBlock.java:20)
at WorkflowScript.run(WorkflowScript:1)
at __cps.transform__(Native Method)
at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.get(PropertyishBlock.java:74)
at com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30)
at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.fixName(PropertyishBlock.java:66)
at sun.reflect.GeneratedMethodAccessor332.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
at com.cloudbees.groovy.cps.Next.step(Next.java:74)
at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:154)
at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:33)
at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:30)
at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)
at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:30)
at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:165)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:328)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:80)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:240)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:228)
at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)
at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Finished: FAILURE
 

omer.van.kloeten@gmail.com (JIRA)

unread,
Mar 22, 2017, 4:11:01 AM3/22/17
to jenkinsc...@googlegroups.com
Omer van Kloeten edited a comment on Bug JENKINS-42882
+1 to this issue, just hit it myself. 

For reference, when Jenkinsfile is symlinked to ci/build.groovy, this is what I'm seeing:


{quote}{{ Obtained Jenkinsfile from f5035722844a5de1222dfaba340171ca060f3c6b }}
{{ [Pipeline] End of Pipeline }}
{{ groovy.lang.MissingPropertyException: No such property: ci for class: groovy.lang.Binding }}
{{ at groovy.lang.Binding.getVariable(Binding.java:63) }}
{{ at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:224) }}
{{ at org.kohsuke.groovy.sandbox.impl.Checker$4.call(Checker.java:241) }}
{{ at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:238) }}
{{ at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.getProperty(SandboxInvoker.java:28) }}
{{ at com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccessBlock.java:20) }}
{{ at WorkflowScript.run(WorkflowScript:1) }}
{{ at ___cps.transform___(Native Method) }}
{{   }}
{quote}

omer.van.kloeten@gmail.com (JIRA)

unread,
Mar 22, 2017, 4:12:02 AM3/22/17
to jenkinsc...@googlegroups.com

omer.van.kloeten@gmail.com (JIRA)

unread,
Mar 22, 2017, 4:12:04 AM3/22/17
to jenkinsc...@googlegroups.com
Omer van Kloeten edited a comment on Bug JENKINS-42882
+1 to this issue, just hit it myself. 

For reference, when Jenkinsfile is symlinked to ci/build.groovy, this is what I'm seeing:

 

omer.van.kloeten@gmail.com (JIRA)

unread,
Mar 22, 2017, 4:12:05 AM3/22/17
to jenkinsc...@googlegroups.com
Omer van Kloeten edited a comment on Bug JENKINS-42882
+1 to this issue, just hit it myself. 
{quote}
For reference, when Jenkinsfile is symlinked to ci/build.groovy, this is what I'm seeing:
{quote} Obtained Jenkinsfile from f5035722844a5de1222dfaba340171ca060f3c6b
{quote}

omer.van.kloeten@gmail.com (JIRA)

unread,
Mar 22, 2017, 4:12:05 AM3/22/17
to jenkinsc...@googlegroups.com
Omer van Kloeten edited a comment on Bug JENKINS-42882
+1 to this issue, just hit it myself. 

For reference, when Jenkinsfile is symlinked to ci/build.groovy, this is what I'm seeing:


{{
Obtained Jenkinsfile from f5035722844a5de1222dfaba340171ca060f3c6b }}
{{   }}

omer.van.kloeten@gmail.com (JIRA)

unread,
Mar 22, 2017, 4:12:05 AM3/22/17
to jenkinsc...@googlegroups.com
Omer van Kloeten edited a comment on Bug JENKINS-42882
+1 to this issue, just hit it myself. 

{quote} For reference, when Jenkinsfile is symlinked to ci/build.groovy, this is what I'm seeing:

{quote}

bernhard.miklautz@shacknet.at (JIRA)

unread,
Mar 22, 2017, 8:05:01 AM3/22/17
to jenkinsc...@googlegroups.com

Omer van Kloeten I have exactly the same trace except it can't find the property build as the link starts with build.

If this behavior isn't intentional and it worked before with older versions it's definitely a regression because it might cause projects to fail (and the problem isn't obvious from the error messages and hard to track).

mark.earl.waite@gmail.com (JIRA)

unread,
Mar 22, 2017, 10:21:02 AM3/22/17
to jenkinsc...@googlegroups.com

I have no indication that this ever worked with any version of the git plugin.

mark.earl.waite@gmail.com (JIRA)

unread,
Jul 14, 2019, 8:22:02 AM7/14/19
to jenkinsc...@googlegroups.com
Mark Waite closed an issue as Won't Fix
 
Change By: Mark Waite
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages