diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-08-11 14:10:16 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-08-11 14:10:16 +0100 |
commit | bd65b5a5e792bac01769129d3c5038feeb891cdc (patch) | |
tree | 30b3cc4afac1235258d3fd3b11ffeee249289b9d /simplejenkinsapi | |
parent | a1f71c9dd770e244fb4291c9c0bbd848f307be51 (diff) | |
download | jenkinstool-bd65b5a5e792bac01769129d3c5038feeb891cdc.tar.gz |
Make sure all shell commands abort if there's an error
Diffstat (limited to 'simplejenkinsapi')
-rw-r--r-- | simplejenkinsapi/jobconfig.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/simplejenkinsapi/jobconfig.py b/simplejenkinsapi/jobconfig.py index 789b894..f935845 100644 --- a/simplejenkinsapi/jobconfig.py +++ b/simplejenkinsapi/jobconfig.py @@ -79,6 +79,7 @@ class JobConfig(object): def add_shell_command(self, shell_text): builders = self._project.find('builders') shell = ET.SubElement(builders, 'hudson.tasks.Shell') + shell_text = 'set -eux\n' + shell_text ET.SubElement(shell, 'command').text = shell_text % self._get_params() def add_ssh_command(self, shell_text): |