Skip to content
Permalink
Browse files

Revert "[JENKINS-26100] Add withCheckout(scm) { body } step."

This reverts commit bec924c.
  • Loading branch information...
abayer committed May 16, 2017
1 parent bec924c commit dbcfe52ad81d16fe3dfdc5ce642f49720aff36e3
@@ -44,7 +44,7 @@
<no-test-jar>false</no-test-jar>
<scm-api-plugin.version>2.1.1</scm-api-plugin.version>
<git-plugin.version>3.3.1-20170503.162551-3</git-plugin.version> <!-- TODO: Switch to release once https://github.com/jenkinsci/git-plugin/pull/492 is merged and released -->
<subversion-plugin.version>2.7.3-20170505.145345-1</subversion-plugin.version> <!-- TODO: Switch to release once https://github.com/jenkinsci/subversion-plugin/pull/182 is merged and released -->
<subversion-plugin.version>2.7.2</subversion-plugin.version>
</properties>
<dependencies>
<dependency>
@@ -92,11 +92,6 @@ public boolean isChangelog() {
}

public final void checkout(Run<?,?> run, FilePath workspace, TaskListener listener, Launcher launcher) throws Exception {
doCheckout(createSCM(), isChangelog(), isPoll(), run, workspace, listener, launcher);
}

static final void doCheckout(SCM scm, boolean changelog, boolean poll,
Run<?,?> run, FilePath workspace, TaskListener listener, Launcher launcher) throws Exception {
File changelogFile = null;
if (changelog) {
for (int i = 0; ; i++) {
@@ -106,6 +101,7 @@ static final void doCheckout(SCM scm, boolean changelog, boolean poll,
}
}
}
SCM scm = createSCM();
SCMRevisionState baseline = null;
Run<?,?> prev = run.getPreviousBuild();
if (prev != null) {

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit dbcfe52

Please sign in to comment.
You can’t perform that action at this time.