|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

The exception is caused in my library because the Job DSL plugin does not properly set the workspace. I pointed out in the issue that when the Job DSL plugin is running my scripts (or any script for that matter) it has set the workspace to:
The current working directory is: /home/sam/Downloads/.
null
If you need further proof create a basic git repository and add the following job DSL to it:
println "The current working directory is: ${new File(".").getAbsolutePath()}"
println System.getenv("WORKSPACE")
Configure the Job DSL plugin with similar settings. You'll see that the Job DSL plugin sets the workspace incorrectly. The Job DSL seems to run from whatever current working directory Jenkins was started from. e.g. If I started Jenkins like so..
cd /tmp
JENKINS_HOME="/home/sam/Downloads/jervis-dsl" java -jar /home/sam/Downloads/jenkins.war
Then the Job DSL plugin would show that the current workspace is
The current working directory is: /tmp/.
null