Skip to content

[FIXED JENKINS-28121] Need to mkdirs before clone #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 13, 2016

Conversation

jglick
Copy link
Member

@jglick jglick commented Jun 24, 2016

JENKINS-28121

Picks up tests from jenkinsci/workflow-scm-step-plugin#4 and jenkinsci/workflow-multibranch-plugin#17, and makes them pass when CACHE_LOCAL_REPOS is deleted.

@reviewbybees

Failure was being masked both in automated and manual tests by the CACHE_LOCAL_REPOS optimization.
Just deleting that special case now; probably rarely useful in the field, and tends to hide behavioral differences.
@@ -13,8 +13,7 @@
<url>http://wiki.jenkins-ci.org/display/JENKINS/Mercurial+Plugin</url>

<properties>
<jenkins.version>1.580.1</jenkins.version>
<java.level>6</java.level>
<jenkins.version>1.642.3</jenkins.version>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need a new baseline to be able to run tests against reasonably modern versions of Pipeline; the 1.4.x line compatible with 1.580.x did not even include workflow-multibranch, which most naturally reproduces this error.

@ghost
Copy link

ghost commented Jun 24, 2016

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

@@ -809,6 +809,7 @@ private void clone(Run<?, ?> build, Launcher launcher, FilePath repository, Node
args.add(getSource(env));
}
args.add(repository.getRemote());
repository.mkdirs();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The actual fix.

@@ -932,12 +933,8 @@ private boolean causedByMissingHg(IOException e) {
return message != null && message.startsWith("Cannot run program") && message.endsWith("No such file or directory");
}

static boolean CACHE_LOCAL_REPOS = false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So what was the point of this such that we're getting rid of it now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was a little faster. But for a situation unlikely to arise in production.

@abayer
Copy link
Member

abayer commented Jul 13, 2016

🐝

@jglick jglick merged commit f9482e3 into jenkinsci:master Jul 13, 2016
@jglick jglick deleted the mkdirs-JENKINS-28121 branch July 13, 2016 17:03
@jglick jglick mentioned this pull request Jul 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants