[JIRA] (JENKINS-53840) job-dsl-plugin unknown protocol when use in dir with mixed separator

2019-03-25 Thread xiaoyao9...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 XiaoYao LingHu edited a comment on  JENKINS-53840  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: job-dsl-plugin unknown protocol when use in dir with mixed separator   
 

  
 
 
 
 

 
 [~daspilker] Only wrong in windows system and also use step ‘dir’ . { panel code:java }node {      //not use step 'dir'      writeFile file: 'foo/bar/test.groovy', text: 'job("example")'      jobDsl targets: 'foo\\bar/test.groovy'      //use step 'dir' no mixed separator      dir("D:\\") {          writeFile file: 'foo/bar/test.groovy', text: 'job("example")'          jobDsl targets: 'foo\\bar/test.groovy'      }      //use step 'dir' with mixed separator      dir("D:\\foo/bar") {            writeFile file: 'test.groovy', text: 'job("example")'            jobDsl targets: 'test.groovy'      }  }  { panel code }{ panel code:java }Running in Durability level: MAX_SURVIVABILITY  [Pipeline]  nodeRunning  nodeRunning  on  [ Jenkins |http://localhost:8080/computer/(master)/]  in D:\Program\Jenkins\workspace\test  [Pipeline] {  [Pipeline] writeFile  [Pipeline]  jobDslProcessing  jobDslProcessing  DSL script test.groovyExisting items:GeneratedJob \ {name='example'}  [Pipeline]  dirRunning  dirRunning  in D:\  [Pipeline] {  [Pipeline] writeFile  [Pipeline]  jobDslProcessing  jobDslProcessing  DSL script test.groovyExisting items:GeneratedJob \ {name='example'}  [Pipeline] }  [Pipeline] // dir  [Pipeline]  dirRunning  dirRunning  in D:\foo/bar  [Pipeline] {  [Pipeline] writeFile  [Pipeline] jobDsl  [Pipeline] }  [Pipeline] // dir  [Pipeline] }  [Pipeline] // node  [Pipeline] End of  Pipelinejava  Pipelinejava .net.MalformedURLException: unknown protocol: d at java.net.URL.(Unknown Source) at java.net.URL.(Unknown Source)  { panel code }  
 

  
 
 
 
 

 
 
 

 
 
 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, 

[JIRA] (JENKINS-53840) job-dsl-plugin unknown protocol when use in dir with mixed separator

2019-03-25 Thread xiaoyao9...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 XiaoYao LingHu assigned an issue to Daniel Spilker  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Additional comments  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-53840  
 
 
  job-dsl-plugin unknown protocol when use in dir with mixed separator   
 

  
 
 
 
 

 
Change By: 
 XiaoYao LingHu  
 
 
Assignee: 
 XiaoYao LingHu Daniel Spilker  
 

  
 
 
 
 

 
 
 

 
 
 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-53840) job-dsl-plugin unknown protocol when use in dir with mixed separator

2019-03-25 Thread xiaoyao9...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 XiaoYao LingHu commented on  JENKINS-53840  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: job-dsl-plugin unknown protocol when use in dir with mixed separator   
 

  
 
 
 
 

 
 Daniel Spilker Only wrong in windows system and also use step ‘dir’. 

 
node { 
    //not use step 'dir'     writeFile file: 'foo/bar/test.groovy', text: 'job("example")'     jobDsl targets: 'foobar/test.groovy' 
    //use step 'dir' no mixed separator     dir("D:")  

Unknown macro: {         writeFile file} 
 
    //use step 'dir' with mixed separator     dir("D:foo/bar")  

Unknown macro: {          writeFile file} 
 
} 

 

 
Running in Durability level: MAX_SURVIVABILITY[Pipeline] nodeRunning on Jenkins in D:\Program\Jenkins\workspace\test[Pipeline]  

Unknown macro: {[Pipeline] writeFile[Pipeline] jobDslProcessing DSL script test.groovy Existing items} 
 
[Pipeline] dirRunning in D:[Pipeline]  

Unknown macro: {[Pipeline] writeFile[Pipeline] jobDslProcessing DSL script test.groovy Existing items} 
 
[Pipeline] }[Pipeline] // dir[Pipeline] dirRunning in D:\foo/bar[Pipeline]  

Unknown macro: {[Pipeline] writeFile[Pipeline] jobDsl[Pipeline] } 
 
[Pipeline] // dir[Pipeline] }[Pipeline] // node[Pipeline] End of Pipelinejava.net.MalformedURLException: unknown protocol: d at java.net.URL.(Unknown Source) at java.net.URL.(Unknown Source) 

  
 

  
 
 
 
 

   

[JIRA] (JENKINS-53840) job-dsl-plugin unknown protocol when use in dir with mixed separator

2018-09-28 Thread xiaoyao9...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 XiaoYao LingHu created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-53840  
 
 
  job-dsl-plugin unknown protocol when use in dir with mixed separator   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 job-dsl-plugin  
 
 
Created: 
 2018-09-29 03:12  
 
 
Environment: 
 Windows Server 2008 R2  JRE 1.8.0_144-b01  
 
 
Labels: 
 plugin job-dsl  
 
 
Priority: 
  Trivial  
 
 
Reporter: 
 XiaoYao LingHu  
 

  
 
 
 
 

 
 If use separator '/' in dir, then jobDsl will throw java.net.MalformedURLException: unknown protocol When change it to ' ', it's ok. 

 

stage('Deploy') {
steps {
echo 'Add deploy scheduling job...'
//THERE
dir("${params.DeployPath}/${env.ArchiveName}") {
jobDsl(
targets: "${params.ProjectName}/jenkins/job_dsl.groovy", 
removedJobAction: 'DELETE', 
removedViewAction: 'DELETE',
additionalParameters: [
ProjectPath: "${params.DeployPath}/${env.ArchiveName}/${params.ProjectName}"
]
)
}
}
}
 

      this is the error log,