[JIRA] [job-dsl-plugin] (JENKINS-32628) DSL script from configuration or file not treated equally

2016-03-11 Thread m...@daniel-spilker.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Daniel Spilker closed an issue as Fixed 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-32628 
 
 
 
  DSL script from configuration or file not treated equally  
 
 
 
 
 
 
 
 
 

Change By:
 
 Daniel Spilker 
 
 
 

Status:
 
 Resolved Closed 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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] [job-dsl-plugin] (JENKINS-32628) DSL script from configuration or file not treated equally

2016-02-26 Thread scm_issue_l...@java.net (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 SCM/JIRA link daemon commented on  JENKINS-32628 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: DSL script from configuration or file not treated equally  
 
 
 
 
 
 
 
 
 
 
Code changed in jenkins User: Daniel Spilker Path: docs/Home.md job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/DslScriptLoader.groovy job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/DslScriptLoaderSpec.groovy job-dsl-core/src/test/resources/java.dsl job-dsl-plugin/src/test/groovy/javaposse/jobdsl/plugin/ExecuteDslScriptsSpec.groovy http://jenkins-ci.org/commit/job-dsl-plugin/f5405721b948444530ed0d79a78c953f3040f5fe Log: Merge pull request #764 from daspilker/

JENKINS-32628
 


JENKINS-32628
 log warning when script name collides with package name 
Compare: https://github.com/jenkinsci/job-dsl-plugin/compare/a93f9abab7e8...f5405721b948 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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] [job-dsl-plugin] (JENKINS-32628) DSL script from configuration or file not treated equally

2016-02-26 Thread scm_issue_l...@java.net (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 SCM/JIRA link daemon commented on  JENKINS-32628 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: DSL script from configuration or file not treated equally  
 
 
 
 
 
 
 
 
 
 
Code changed in jenkins User: Daniel Spilker Path: docs/Home.md job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/DslScriptLoader.groovy job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/DslScriptLoaderSpec.groovy job-dsl-core/src/test/resources/java.dsl job-dsl-plugin/src/test/groovy/javaposse/jobdsl/plugin/ExecuteDslScriptsSpec.groovy http://jenkins-ci.org/commit/job-dsl-plugin/109399e7311189768eb77bd9a7a2766ac60bd183 Log: log warning when script name collides with package name 
[FIXES JENKINS-32628] 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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] [job-dsl-plugin] (JENKINS-32628) DSL script from configuration or file not treated equally

2016-02-26 Thread scm_issue_l...@java.net (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 SCM/JIRA link daemon resolved as Fixed 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-32628 
 
 
 
  DSL script from configuration or file not treated equally  
 
 
 
 
 
 
 
 
 

Change By:
 
 SCM/JIRA link daemon 
 
 
 

Status:
 
 Open Resolved 
 
 
 

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] [job-dsl-plugin] (JENKINS-32628) DSL script from configuration or file not treated equally

2016-02-26 Thread m...@daniel-spilker.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Daniel Spilker commented on  JENKINS-32628 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: DSL script from configuration or file not treated equally  
 
 
 
 
 
 
 
 
 
 
The next version will log a warning to console output if a conflicting package name is detected. 
https://github.com/jenkinsci/job-dsl-plugin/pull/764 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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] [job-dsl-plugin] (JENKINS-32628) DSL script from configuration or file not treated equally

2016-02-26 Thread john.defa...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 John Default commented on  JENKINS-32628 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: DSL script from configuration or file not treated equally  
 
 
 
 
 
 
 
 
 
 
Oh, such a triviality. I am sorry, this possibility didn't even come under suspicion... Thank for explanation Daniel.  
So a big warning for other newbies: Do not name your dsl file jenkins.dsl! (or anyExistingInternalclass.dsl). When you see "ERROR: No such property: ... for class: ... " it could mean you hit the name of some internal class with your filename. 
If there was nothing more to do, and there happens to be anyone as uneducated as me to report this again, would it be possible to copy file contents into some temporary file with "nonTriviallyNamedInternalFileWithImportedContents.dsl" name (or using mktemp) before using it as class ? Could prevent such mistakes in the future. Or probably dropping a warning somewhere in documentation. 
Thank you very much again for your help with this and for maintaining Job DSL plugin.  
 
 
 
 
 
 
 
 
 
 
 
 

 
 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] [job-dsl-plugin] (JENKINS-32628) DSL script from configuration or file not treated equally

2016-02-11 Thread m...@daniel-spilker.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Daniel Spilker commented on  JENKINS-32628 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: DSL script from configuration or file not treated equally  
 
 
 
 
 
 
 
 
 
 
The problem is that the Groovy script engine generates a class called jenkins for your jenkins.dsl script file. And that class name clashes with the jenkins package. Renaming your script should help to avoid the problem. The class will always have the same name as the script file without extension. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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] [job-dsl-plugin] (JENKINS-32628) DSL script from configuration or file not treated equally

2016-01-26 Thread john.defa...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 John Default created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-32628 
 
 
 
  DSL script from configuration or file not treated equally  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Assignee:
 
 Daniel Spilker 
 
 
 

Components:
 

 job-dsl-plugin 
 
 
 

Created:
 

 26/Jan/16 2:04 PM 
 
 
 

Environment:
 

 Jenkins ver. 1.642.1  Job DSL plugin ver. 1.42  Java 1.8.0_66  Debian GNU/Linux 8 
 
 
 

Priority:
 
  Trivial 
 
 
 

Reporter:
 
 John Default 
 
 
 
 
 
 
 
 
 
 
The following script configured for Job DSL plugin works OK when put into "Use the provided DSL script" (or jenkins script console), but not when put into file (into scm) and called via "Look on Filesystem" The cause of error output is probably trivial and doesn't matter much, but I would expect those two input methods to be identical (both work or fail). 

 

for (job in jenkins.model.Jenkins.theInstance.getProjects()) { out.println("Found job: " + job.name) }
 

 

 
Error output: 
Processing DSL script jenkins.dsl
ERROR: (jenkins.dsl, line 1) No such property: model for class: jenkins