I have just started Jenkins setup on docker. I started docker container and am planning to run the ANT script I have written, this is where problems started.
Jenkins kept on reporting
ERROR: Unable to find build script at /var/jenkins_home/workspace/SampleSCM/.SampleProject/build.xml
I am not sure how to access /var/Jenkins_home in my local host. Can someone please help ?
Thanks.
/var/jenkins_homethe jenkins home on the host (so not in docker)? If you use the jenkins docker plugin it should do it for you. If your run from a shell script, make sure you map the workspace (this is what the plugin does as well), like so:docker run -v /var/jenkins_home/workspace/SampleSCM:/var/jenkins_home/workspace/SampleSCM -w /var/jenkins_home/workspace/SampleSCM [other options] imagename:tag [optional commands]- Rik