[JIRA] (JENKINS-56488) Docker Pipeline plugin doesn't support quotes around Dockerfile path

2019-07-15 Thread siraj.sherr...@oracle.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Siraj Sherriff commented on  JENKINS-56488  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Docker Pipeline plugin doesn't support quotes around Dockerfile path   
 

  
 
 
 
 

 
 I am getting this same error in the following Jenkins version. 
 

 
 
org.jenkins-ci.main:jenkins-war:2.176.1 
 

 
 My command is as follows and the Dockerfile is actually named "dockerfile" (lower case 'd') 

 
app = docker.build('newimage_190715'); 

 The docker.build() call is actually building the docker image, but at the end, it gives an error, 

 
Successfully built a1b2c3d4e5
Successfully tagged newimage_190715:latest
[Pipeline] dockerFingerprintFrom
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
java.nio.file.NoSuchFileException: /Dockerfile
	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
	at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)  

 To workaround the build failure, I created a symlink and the error disappeared. 

 
 $ ls -ltr

lrwxrwxrwx 1  1234   10 Jul 15 22:00 Dockerfile -> dockerfile
 

 Is there a dependency on the exact filename that Jenkins expects at some point in the build steps ?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 
 

[JIRA] (JENKINS-56488) Docker Pipeline plugin doesn't support quotes around Dockerfile path

2019-04-24 Thread dnusb...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Devin Nusbaum started work on  JENKINS-56488  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
Change By: 
 Devin Nusbaum  
 
 
Status: 
 Open In Progress  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-56488) Docker Pipeline plugin doesn't support quotes around Dockerfile path

2019-04-24 Thread dnusb...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Devin Nusbaum updated  JENKINS-56488  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-56488  
 
 
  Docker Pipeline plugin doesn't support quotes around Dockerfile path   
 

  
 
 
 
 

 
Change By: 
 Devin Nusbaum  
 
 
Status: 
 In  Progress  Review  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-56488) Docker Pipeline plugin doesn't support quotes around Dockerfile path

2019-04-24 Thread scho...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Aleksei Zhogov commented on  JENKINS-56488  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Docker Pipeline plugin doesn't support quotes around Dockerfile path   
 

  
 
 
 
 

 
 Devin Nusbaum yes, I need quotes when the path contains spaces  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-56488) Docker Pipeline plugin doesn't support quotes around Dockerfile path

2019-04-24 Thread dnusb...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Devin Nusbaum commented on  JENKINS-56488  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Docker Pipeline plugin doesn't support quotes around Dockerfile path   
 

  
 
 
 
 

 
 Aleksei Zhogov Is there any particular reason why you want to put quotes around your dockerfile name? I guess if the name contains spaces?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-56488) Docker Pipeline plugin doesn't support quotes around Dockerfile path

2019-04-24 Thread scho...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Aleksei Zhogov commented on  JENKINS-56488  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Docker Pipeline plugin doesn't support quotes around Dockerfile path   
 

  
 
 
 
 

 
 Devin Nusbaum can you please take a look at this issue and PR. I'm not sure what is the next step after creating an issue and PR to fix it.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-56488) Docker Pipeline plugin doesn't support quotes around Dockerfile path

2019-04-24 Thread scho...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Aleksei Zhogov assigned an issue to Unassigned  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-56488  
 
 
  Docker Pipeline plugin doesn't support quotes around Dockerfile path   
 

  
 
 
 
 

 
Change By: 
 Aleksei Zhogov  
 
 
Assignee: 
 Andrew Bayer  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-56488) Docker Pipeline plugin doesn't support quotes around Dockerfile path

2019-03-08 Thread scho...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Aleksei Zhogov assigned an issue to Andrew Bayer  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-56488  
 
 
  Docker Pipeline plugin doesn't support quotes around Dockerfile path   
 

  
 
 
 
 

 
Change By: 
 Aleksei Zhogov  
 
 
Assignee: 
 Andrew Bayer  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-56488) Docker Pipeline plugin doesn't support quotes around Dockerfile path

2019-03-08 Thread scho...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Aleksei Zhogov commented on  JENKINS-56488  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Docker Pipeline plugin doesn't support quotes around Dockerfile path   
 

  
 
 
 
 

 
 PR to fix it: https://github.com/jenkinsci/docker-workflow-plugin/pull/164  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-56488) Docker Pipeline plugin doesn't support quotes around Dockerfile path

2019-03-08 Thread scho...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Aleksei Zhogov created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-56488  
 
 
  Docker Pipeline plugin doesn't support quotes around Dockerfile path   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 docker-workflow-plugin  
 
 
Created: 
 2019-03-08 18:55  
 
 
Environment: 
 Jenkins 2.167  Both Docker Pipeline 1.17 and latest master (490870e)  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Aleksei Zhogov  
 

  
 
 
 
 

 
 Pipeline: 

 

node {
sh 'echo "FROM alpine" > Dockerfile'
sh 'ls'
sh 'cat Dockerfile'
docker.build("test-image", "--file './Dockerfile' .")
}
 

 Error I get from Docker Pipeline 1.17 

 

[Pipeline] Start of Pipeline (hide)
[Pipeline] node
Running on Jenkins in /var/jenkins_home/workspace/test-pipeline
[Pipeline] {
[Pipeline] sh
+ echo FROM alpine
[Pipeline] sh
+ ls
Dockerfile
[Pipeline] sh
+ cat Dockerfile
FROM alpine
[Pipeline] sh
+ docker build -t test-image --file ./Dockerfile .
Sending build context to Docker daemon  2.048kB

Step 1/1 : FROM alpine
 ---> caf27325b298
Successfully built caf27325b298
Successfully tagged test-image:latest
[Pipeline] dockerFingerprintFrom
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
java.nio.file.NoSuchFileException: /var/jenkins_home/workspace/test-pipeline/'./Dockerfile'
	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
	at