diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-08-11 18:27:05 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-08-11 18:27:05 +0100 |
commit | 0f382713e851bdeb53fadab78811bf967a747f82 (patch) | |
tree | dd616d516369bd60266e8a55e3e162696c6eb31a /simplejenkinsapi | |
parent | 190b10c8a91e48f4fefe315fa69cb11142c8d5ae (diff) | |
download | jenkinstool-0f382713e851bdeb53fadab78811bf967a747f82.tar.gz |
Create directory on worker before cd'ing to it
This way we don't need to play tricks to create it before calling
add_ssh_command the first time.
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 f935845..3bc2773 100644 --- a/simplejenkinsapi/jobconfig.py +++ b/simplejenkinsapi/jobconfig.py @@ -86,6 +86,7 @@ class JobConfig(object): prefix = '''\ ssh "%(host.ssh-target)s" sh <<\\END set -eux +mkdir -p "%(host.directory)s" cd "%(host.directory)s" ''' suffix = '\nEND' |