Change By: Sam Gleske (08/Feb/15 9:30 AM)
Description: My job is failing because the workspace is not properly set when the DSL scripts are running  from a git repository .  I've attached Jenkins job output.

The key part of the text to pay attention to in the job output is:

The current working directory is: /home/sam/Downloads/.
null

The current working directory SHOULD be the workspace directory but it's not.  That null is my DSL script printing the Jenkins WORKSPACE environment variable.  That is to say it isn't set either.  Here's a link to the code that is outputting those two lines.

https://github.com/samrocketman/jervis/blob/5226863a2c32964709ad94270115eb8fadb7ba52/jobs/firstjob.dsl.groovy#L8-L9

I will attach a screenshot of my Jenkins job settings.  I started Jenkins with the following command.

cd ~/Downloads
JENKINS_HOME="./jervis-dsl" java -jar jenkins.war
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to