When Jenkins invoke shell scripts, it pass its environment variables to it. Include workspace path. But file separator is Java like ('/') instead of windows like ('\').
Today, several jenkins job continue to work but their console log ended with long exception: ERROR: Asynchronous execution failure java.util.concurrent.ExecutionException: hudson.util.IOException2: Unable to read
I tried to run groovy build step and got below error. This post will describe how I solved the problem. Caught: groovy.lang.MissingPropertyException: No such property: hudson for class: script
Jenkins build tool create several environment variables before job begins. This list is useful for building email templates and build steps. Here are some of the variables: