The code in this box is executed after your source has been checked out, but before your build steps.
- If the script fails (returns a non-zero exit status), the build is failed.
- If it succeeds, the output is expected to be lines of KEY=VALUE pairs that will be injected into the environment variables. The output is parsed using java.util.Properties.
- The output is expected to be UTF-8 encoded.
If you want a non-standard shell to execute your code, there is support for "shebang syntax". To run custom interpreters, just make the first line of your script #!/usr/bin/my_interpreter.