[JIRA] [docker-build-publish-plugin] (JENKINS-35000) Docker build on linux slave fails due to '\' backslash

2016-05-31 Thread scm_issue_l...@java.net (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 SCM/JIRA link daemon commented on  JENKINS-35000 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Docker build on linux slave fails due to '\' backslash  
 
 
 
 
 
 
 
 
 
 
Code changed in jenkins User: Mark Path: src/main/java/com/cloudbees/dockerpublish/DockerBuilder.java http://jenkins-ci.org/commit/docker-build-publish-plugin/46d450db5a3e057f26f580a4a311764ea1efcff4 Log: 

JENKINS-35000
 Incorrect file backslash when slave is linux (#42) 
Incorrect file backslash when slave is linux and master is windows 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [docker-build-publish-plugin] (JENKINS-35000) Docker build on linux slave fails due to '\' backslash

2016-05-31 Thread jenkins...@carlossanchez.eu (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Carlos Sanchez closed an issue as Fixed 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
Merged, thanks 
 
 
 
 
 
 
 
 
 
 Jenkins /  JENKINS-35000 
 
 
 
  Docker build on linux slave fails due to '\' backslash  
 
 
 
 
 
 
 
 
 

Change By:
 
 Carlos Sanchez 
 
 
 

Status:
 
 Open Closed 
 
 
 

Resolution:
 
 Fixed 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [docker-build-publish-plugin] (JENKINS-35000) Docker build on linux slave fails due to '\' backslash

2016-05-23 Thread mrich...@paychex.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Mark R commented on  JENKINS-35000 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Docker build on linux slave fails due to '\' backslash  
 
 
 
 
 
 
 
 
 
 
Pull request @ https://github.com/jenkinsci/docker-build-publish-plugin/pull/42 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [docker-build-publish-plugin] (JENKINS-35000) Docker build on linux slave fails due to '\' backslash

2016-05-20 Thread mrich...@paychex.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Mark R edited a comment on  JENKINS-35000 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Docker build on linux slave fails due to '\' backslash  
 
 
 
 
 
 
 
 
 
 Due Possibly due  to this line (DockerBuilder.java):{code:java}FilePath context = defined(expandAll(getBuildContext())) ? new FilePath(new File(expandAll(getBuildContext(: build.getWorkspace();{code}Master is windows host so File is created with windows slash style.Could do something similar to what getWorkspace() does in AbstractBuilder by accessing the getBuiltOn() node if it is not null and creating a path from there. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [docker-build-publish-plugin] (JENKINS-35000) Docker build on linux slave fails due to '\' backslash

2016-05-20 Thread mrich...@paychex.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Mark R commented on  JENKINS-35000 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Docker build on linux slave fails due to '\' backslash  
 
 
 
 
 
 
 
 
 
 
Due to this line (DockerBuilder.java): 

 

FilePath context = defined(expandAll(getBuildContext())) ? new FilePath(new File(expandAll(getBuildContext(
: build.getWorkspace();
 

 
Master is windows host so File is created with windows slash style. 
Could do something similar to what getWorkspace() does in AbstractBuilder by accessing the getBuiltOn() node if it is not null and creating a path from there. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [docker-build-publish-plugin] (JENKINS-35000) Docker build on linux slave fails due to '\' backslash

2016-05-20 Thread mrich...@paychex.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Mark R updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-35000 
 
 
 
  Docker build on linux slave fails due to '\' backslash  
 
 
 
 
 
 
 
 
 

Change By:
 
 Mark R 
 
 
 
 
 
 
 
 
 
 The plugin is failing while running on a linux slave node. I have the "Build Context" set to "helloworld/build". It appears somewhere alone the line that is being translated into "helloworld\build" which is causing issues on the linux agent. See log below. Plugin version 1.2.2 (latest) Docker version 1.8.2-el7, build a01dc02/1.8.2Note that I have a node in a different environment running docker 1.9.1 and I don't encounter this issue.{noformat}docker build -t registry/repository/helloworld:v1.0.0 --no-cache=true --pull=true helloworld\buildunable to prepare context: unable to evaluate symlinks in context path: lstat /var/appl/jenkins/workspace/workspace/helloworld\build: no such file or directoryBuild step 'Docker Build and Publish' marked build as failure[BFA] Scanning build for known causes...{noformat} 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [docker-build-publish-plugin] (JENKINS-35000) Docker build on linux slave fails due to '\' backslash

2016-05-20 Thread mrich...@paychex.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Mark R created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-35000 
 
 
 
  Docker build on linux slave fails due to '\' backslash  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Assignee:
 
 Carlos Sanchez 
 
 
 

Components:
 

 docker-build-publish-plugin 
 
 
 

Created:
 

 2016/May/20 7:57 PM 
 
 
 

Priority:
 
  Major 
 
 
 

Reporter:
 
 Mark R 
 
 
 
 
 
 
 
 
 
 
The plugin is failing while running on a linux slave node. I have the "Build Context" set to "helloworld/build". It appears somewhere alone the line that is being translated into "helloworld\build" which is causing issues on the linux agent. See log below. 
Docker version 1.8.2-el7, build a01dc02/1.8.2 Note that I have a node in a different environment running docker 1.9.1 and I don't encounter this issue. 

 
docker build -t registry/repository/helloworld:v1.0.0 --no-cache=true --pull=true helloworld\build
unable to prepare context: unable to evaluate symlinks in context path: lstat /var/appl/jenkins/workspace/workspace/helloworld\build: no such file or directory
Build step 'Docker Build and Publish' marked build as failure
[BFA] Scanning build for known causes...