Skip to content

Commit

Permalink
Merge pull request #11 from recena/master
Browse files Browse the repository at this point in the history
[JENKINS-26611] SvnTagPublisher aborted java.lang.NoSuchMethodError
  • Loading branch information
recena committed Jul 6, 2015
2 parents 81e0eea + bcb4e44 commit 65c99c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>1.424</version>
<version>1.568</version>
</parent>
<artifactId>svn-tag</artifactId>
<name>Jenkins Subversion Tagging Plugin</name>
Expand Down Expand Up @@ -39,7 +39,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>subversion</artifactId>
<version>2.2</version>
<version>2.5</version>
</dependency>
</dependencies>

Expand Down
4 changes: 3 additions & 1 deletion src/main/java/hudson/plugins/svn_tag/SvnTagPlugin.java
Expand Up @@ -6,9 +6,11 @@
import hudson.Launcher;
import hudson.model.AbstractBuild;
import hudson.model.AbstractProject;
import hudson.model.Run;
import hudson.model.BuildListener;
import hudson.model.Result;
import hudson.scm.SubversionSCM;

import org.apache.commons.lang.StringUtils;
import org.codehaus.groovy.control.CompilerConfiguration;
import org.tmatesoft.svn.core.*;
Expand Down Expand Up @@ -238,7 +240,7 @@ static Map<String, Long> parseRevisionFile(AbstractBuild build)
Map<String, Long> revisions =
new HashMap<String, Long>(); // module -> revision
// read the revision file of the last build
File file = SubversionSCM.getRevisionFile(build);
File file = SubversionSCM.getRevisionFile((Run) build);
if (!file.exists()) // nothing to compare against
{
return revisions;
Expand Down

0 comments on commit 65c99c5

Please sign in to comment.