[JIRA] (JENKINS-55424) Putting a space at the end of Script Path causes java.io.FileNotFoundException

3 views
Skip to first unread message

steve@pointers-uk.net (JIRA)

unread,
Jan 7, 2019, 8:19:02 AM1/7/19
to jenkinsc...@googlegroups.com
Steve Button created an issue
 
Jenkins / Bug JENKINS-55424
Putting a space at the end of Script Path causes java.io.FileNotFoundException
Issue Type: Bug Bug
Assignee: Unassigned
Components: _unsorted
Created: 2019-01-07 13:18
Environment: Jenkins ver. 2.124
Labels: newbie-friendly
Priority: Minor Minor
Reporter: Steve Button

I configured a pipeline and under the Pipeline section specified the Script Path. Somehow a space was put onto the end of the file name, and this caused java.io.FileNotFoundException.

I would have thought the behaviour should be to strip superflous spaces from the end of fields.

I would guess this is something that's pretty easy to fix, but it's caused me a whole world of pain trying to track it down as it's not at all obvious what the problem is.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

steve@pointers-uk.net (JIRA)

unread,
Jan 7, 2019, 8:20:02 AM1/7/19
to jenkinsc...@googlegroups.com
Steve Button updated an issue
Change By: Steve Button
I configured a pipeline and under the Pipeline section specified the Script Path. Somehow a space was put onto the end of the file name, and this caused java.io.FileNotFoundException . , when the job actually got called (in the script console)

I would have thought the behaviour should be to strip superflous spaces from the end of fields.

I would guess this is something that's pretty easy to fix, but it's caused me a whole world of pain trying to track it down as it's not at all obvious what the problem is.

steve@pointers-uk.net (JIRA)

unread,
Jan 7, 2019, 8:21:01 AM1/7/19
to jenkinsc...@googlegroups.com
Steve Button updated an issue
I configured a pipeline and under the Pipeline section specified the Script Path. Somehow a space was put onto the end of the file name, and this caused java.io.FileNotFoundException, when the job actually got called (in the script console Console Output )


I would have thought the behaviour should be to strip superflous spaces from the end of fields.

I would guess this is something that's pretty easy to fix, but it's caused me a whole world of pain trying to track it down as it's not at all obvious what the problem is.


Here's the full error :-

 

java.io.FileNotFoundException
at jenkins.plugins.git.GitSCMFile$3.invoke(GitSCMFile.java:167)
at jenkins.plugins.git.GitSCMFile$3.invoke(GitSCMFile.java:159)
at jenkins.plugins.git.GitSCMFileSystem$3.invoke(GitSCMFileSystem.java:193)
at org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:29)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.withRepository(CliGitAPIImpl.java:72)
at jenkins.plugins.git.GitSCMFileSystem.invoke(GitSCMFileSystem.java:189)
at jenkins.plugins.git.GitSCMFile.content(GitSCMFile.java:159)
at jenkins.scm.api.SCMFile.contentAsString(SCMFile.java:338)
at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:110)
at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:67)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:303)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE

 

steve@pointers-uk.net (JIRA)

unread,
Jan 7, 2019, 8:22:02 AM1/7/19
to jenkinsc...@googlegroups.com
Steve Button updated an issue
I configured a pipeline and under the Pipeline section specified the Script Path. Somehow a space was put onto the end of the file name, and this caused java.io.FileNotFoundException, when the job actually got called (in the Console Output)


I would have thought the behaviour should be to strip superflous spaces from the end of fields.

I would guess this is something that's pretty easy to fix, but it's caused me a whole world of pain trying to track it down as it's not at all obvious what the problem is.

Here's the full error :-

 

java.io.FileNotFoundException
at jenkins.plugins.git.GitSCMFile$3.invoke(GitSCMFile.java:167)
at jenkins.plugins.git.GitSCMFile$3.invoke(GitSCMFile.java:159)
at jenkins.plugins.git.GitSCMFileSystem$3.invoke(GitSCMFileSystem.java:193)
at org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:29)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.withRepository(CliGitAPIImpl.java:72)
at jenkins.plugins.git.GitSCMFileSystem.invoke(GitSCMFileSystem.java:189)
at jenkins.plugins.git.GitSCMFile.content(GitSCMFile.java:159)
at jenkins.scm.api.SCMFile.contentAsString(SCMFile.java:338)
at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:110)
at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:67)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:303)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE

 

sagar.ailani@somaiya.edu (JIRA)

unread,
Jan 9, 2019, 7:06:02 AM1/9/19
to jenkinsc...@googlegroups.com

jglick@cloudbees.com (JIRA)

unread,
Jan 10, 2019, 10:28:01 PM1/10/19
to jenkinsc...@googlegroups.com
Jesse Glick updated an issue
Change By: Jesse Glick
Component/s: workflow-cps-plugin
Component/s: _unsorted

jglick@cloudbees.com (JIRA)

unread,
Jan 10, 2019, 10:29:02 PM1/10/19
to jenkinsc...@googlegroups.com

sagar.ailani@somaiya.edu (JIRA)

unread,
Jan 14, 2019, 11:10:02 AM1/14/19
to jenkinsc...@googlegroups.com

sagar.ailani@somaiya.edu (JIRA)

unread,
Jan 14, 2019, 11:10:02 AM1/14/19
to jenkinsc...@googlegroups.com

jglick@cloudbees.com (JIRA)

unread,
Jan 14, 2019, 11:34:02 AM1/14/19
to jenkinsc...@googlegroups.com

dnusbaum@cloudbees.com (JIRA)

unread,
Jan 14, 2019, 1:35:03 PM1/14/19
to jenkinsc...@googlegroups.com
Devin Nusbaum updated Bug JENKINS-55424
 

The fix for this issue was just released in version 2.62 of Pipeline Groovy Plugin.

Change By: Devin Nusbaum
Status: Fixed but Unreleased Resolved
Released As: workflow-cps 2.62

benston.kodamala@jocata.com (JIRA)

unread,
Jul 17, 2019, 7:34:03 AM7/17/19
to jenkinsc...@googlegroups.com

dnusbaum@cloudbees.com (JIRA)

unread,
Jul 17, 2019, 9:19:04 AM7/17/19
to jenkinsc...@googlegroups.com
Devin Nusbaum commented on Bug JENKINS-55424
 
Re: Putting a space at the end of Script Path causes java.io.FileNotFoundException

benston n Please do not change the status of a ticket without some kind of comment/justification.

dnusbaum@cloudbees.com (JIRA)

unread,
Jul 17, 2019, 9:19:04 AM7/17/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages