From 813dc3abb03aa88b1eabc81fa74c4271e8cd9786 Mon Sep 17 00:00:00 2001 From: Nam Nguyen Date: Wed, 16 Sep 2015 19:45:56 -0700 Subject: [PATCH] bug --- .../ccmui/roles/jenkins/tools/recipes/clear-workspace.bash | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/adobe/roles/ccmui/roles/jenkins/tools/recipes/clear-workspace.bash b/roles/adobe/roles/ccmui/roles/jenkins/tools/recipes/clear-workspace.bash index fea44094..bb057d97 100755 --- a/roles/adobe/roles/ccmui/roles/jenkins/tools/recipes/clear-workspace.bash +++ b/roles/adobe/roles/ccmui/roles/jenkins/tools/recipes/clear-workspace.bash @@ -8,7 +8,10 @@ function main() source "${appPath}/../../../../../../../../cookbooks/jenkins/attributes/slave.bash" - local -r command="sudo rm -f -r ${JENKINS_WORKSPACE_FOLDER}/workspace" + local -r command=" + sudo rm -f -r ${JENKINS_WORKSPACE_FOLDER}/workspace && + sudo mkdir -p ${JENKINS_WORKSPACE_FOLDER}/workspace + " "${appPath}/../../../../../../../../tools/run-remote-command.bash" \ --attribute-file "${attributeFile}" \