mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-06 16:45:58 +00:00
Fixed in 1.225. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10096 71c3de6d-444a-0410-be80-ed276b4c234a
16 lines
1011 B
HTML
16 lines
1011 B
HTML
<div>
|
|
Runs a shell script (defaults to <tt>sh</tt>, but this is configurable) for building the project.
|
|
The script will be run with the workspace as the current directory. Type in the contents of your shell
|
|
script. If your shell script has no header line like <tt>#!/bin/sh</tt> —, then the shell configured
|
|
system-wide will be used, but you can also use the header line to write script in another language
|
|
(like <tt>#!/bin/perl</tt>) or control the options that shell uses.
|
|
|
|
<p>
|
|
By default, the shell will be invoked with the "-ex" option. So all of the commands are printed before being executed,
|
|
and the build is considered a failure if any of the commands exits with a non-zero exit code. Again, add the
|
|
<tt>#!/bin/...</tt> line to change this behavior.
|
|
|
|
<p>
|
|
As a best practice, try not to put a long shell script in here. Instead, consider adding the shell script
|
|
in SCM and simply call that shell script from Hudson, so that you can track changes in your shell script.
|
|
</div> |