Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Revert "[JENKINS-26100] Add withCheckout(scm) { body } step."
This reverts commit bec924c.
  • Loading branch information
abayer committed May 16, 2017
1 parent bec924c commit dbcfe52
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 483 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -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>
Expand Down
Expand Up @@ -92,11 +92,6 @@ protected Map<String,String> run() throws Exception {
}

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++) {
Expand All @@ -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) {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit dbcfe52

Please sign in to comment.