Skip to content

Commit

Permalink
Create the workspace if it does not exist, allows launcher to start i…
Browse files Browse the repository at this point in the history
…n that location.

[FIXED JENKINS-12770]
  • Loading branch information
cjo9900 committed Feb 19, 2012
1 parent 840e114 commit 5ddb5ce
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -93,7 +93,13 @@ public Environment setUp(AbstractBuild build, Launcher launcher,
public void preCheckout(AbstractBuild build, Launcher launcher,
BuildListener listener) throws IOException, InterruptedException {
PrintStream log = listener.getLogger();


/* touch workspace so that it is created on first time */
if( ! build.getWorkspace().exists())
{
build.getWorkspace().mkdirs();
}

if (buildSteps == null) {
log.println("No build steps declared");
return;
Expand Down

0 comments on commit 5ddb5ce

Please sign in to comment.