From 9a32c715c940f6a975c664265aa703421d635017 Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Thu, 23 May 2013 20:57:33 +0000 Subject: [PATCH] make sure the dir exists before we continue --- playbooks/groups/jenkins-cloud.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/playbooks/groups/jenkins-cloud.yml b/playbooks/groups/jenkins-cloud.yml index 27f484ef27..ee05acad7f 100644 --- a/playbooks/groups/jenkins-cloud.yml +++ b/playbooks/groups/jenkins-cloud.yml @@ -115,6 +115,11 @@ - name: start jenkins itself action: service name=jenkins state=running + - name: wait for a dir to exist - this is just ugly + shell: while `true`; do [ -d /var/lib/jenkins/plugins/openid/WEB-INF/lib/ ] && break; sleep 5; done + async: 1800 + poll: 20 + - name: jenkins hotfix big file copy: src=$item dest=/var/lib/jenkins/plugins/openid/WEB-INF/lib/ group=jenkins mode=655 with_fileglob: $bigfiles/hotfixes/jenkins/openid/*.jar