Hi,

I'm using the latest version of Jenkins, SVN 1.7, and just installed the 
Maven Release plugin for Jenkins.  Is there any way to configure the Maven 
release plugin to do a fresh checkout from SVN before it runs?  I'm running 
the plugin by doing the following:

- From my job, clicking "Perform Maven Release" from the left panel
- Clicking the checkbox "Specify SCM login/password" and filling in my SVN 
username and password.
- Clicking the button "Schedule Maven Release Build"

However, I'm getting the error, "Cannot prepare the release because you 
have local modifications".  The plugin doesn't appear to have any other 
configuration options.  Below is the complete stack trace.


===========================Begin stack trace 
================================
Building remotely on s-17abf238 in workspace /scratch/jenkins/workspace/test
Updating https://mydomain.com/svn/subco-digitalurl at revision 
'2013-06-26T14:37:39.249 +0000'
At revision 2078
no change for https://mydomain.com/svn/subco-digitalurl since the previous 
build
Parsing POMs
Modules changed, recalculating dependency graph
[test] $ /opt/jdk/jdk1.7.latest/bin/java -Dmaven.test.failure.ignore=false 
-cp 
/scratch/jenkins/maven3-agent.jar:/opt/maven/apache-maven-3.0.4/boot/plexus-classworlds-2.4.jar
 
org.jvnet.hudson.maven3.agent.Maven3Main /opt/maven/apache-maven-3.0.4 
/scratch/jenkins/slave.jar /scratch/jenkins/maven3-interceptor.jar 57596
<===[JENKINS REMOTING CAPACITY]===>channel started
log4j:WARN No appenders could be found for logger 
(org.apache.commons.beanutils.converters.BooleanConverter).
log4j:WARN Please initialize the log4j system properly.
Executing Maven:  -B -f /scratch/jenkins/workspace/test/test/pom.xml 
-DdevelopmentVersion=1.2-SNAPSHOT -DreleaseVersion=1.1 -Dusername=myuser 
-Dpassword=********* -Dresume=false release:prepare release:perform
[INFO] Scanning for projects...
Projects to build: [MavenProject: org.myco.subco:test:1.1-SNAPSHOT @ 
/scratch/jenkins/workspace/test/test/pom.xml]
projectStarted org.myco.subco:test:1.1-SNAPSHOT
[INFO]                                                                         

[INFO] 
------------------------------------------------------------------------
[INFO] Building test 1.1-SNAPSHOT
[INFO] 
------------------------------------------------------------------------
mojoStarted org.apache.maven.plugins:maven-release-plugin:2.0(default-cli)
[INFO] 
[INFO] --- maven-release-plugin:2.0:prepare (default-cli) @ test ---
[INFO] Verifying that there are no local modifications...
[INFO] Executing: /bin/sh -c cd /scratch/jenkins/workspace/test/test && svn 
--username myuser --password '*****' --non-interactive status
[INFO] Working directory: /scratch/jenkins/workspace/test/test
mojoFailed org.apache.maven.plugins:maven-release-plugin:2.0(default-cli)
projectFailed org.myco.subco:test:1.1-SNAPSHOT
sessionEnded
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 8.227s
[INFO] Finished at: Wed Jun 26 14:38:24 UTC 2013
[INFO] Final Memory: 12M/205M
[INFO] 
------------------------------------------------------------------------
Projects to build: [MavenProject: org.myco.subco:test:1.1-SNAPSHOT @ 
/scratch/jenkins/workspace/test/test/pom.xml]
[JENKINS] Archiving /scratch/jenkins/workspace/test/test/pom.xml to 
/home/evotext/hudson_home/jobs/test/modules/org.myco.subco$test/builds/2013-06-26_14-38-09/archive/org.myco.subco/test/1.1-SNAPSHOT/test-1.1-SNAPSHOT.pom
Waiting for Jenkins to finish collecting data
mavenExecutionResult exceptions not empty
message : Failed to execute goal 
org.apache.maven.plugins:maven-release-plugin:2.0:prepare (default-cli) on 
project test: Cannot prepare the release because you have local 
modifications : 
[target/maven-archiver/pom.properties:modified]
[target/surefire-reports/TEST-org.myco.subco.AppTest.xml:modified]
[target/surefire-reports/org.myco.subco.AppTest.txt:modified]
[target/test-1.1-SNAPSHOT.jar:unknown]

cause : Cannot prepare the release because you have local modifications : 
[target/maven-archiver/pom.properties:modified]
[target/surefire-reports/TEST-org.myco.subco.AppTest.xml:modified]
[target/surefire-reports/org.myco.subco.AppTest.txt:modified]
[target/test-1.1-SNAPSHOT.jar:unknown]

Stack trace : 
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
goal org.apache.maven.plugins:maven-release-plugin:2.0:prepare 
(default-cli) on project test: Cannot prepare the release because you have 
local modifications : 
[target/maven-archiver/pom.properties:modified]
[target/surefire-reports/TEST-org.myco.subco.AppTest.xml:modified]
[target/surefire-reports/org.myco.subco.AppTest.txt:modified]
[target/test-1.1-SNAPSHOT.jar:unknown]

    at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
    at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at 
org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
    at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
    at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
    at hudson.maven.Maven3Builder.call(Maven3Builder.java:98)
    at hudson.maven.Maven3Builder.call(Maven3Builder.java:64)
    at hudson.remoting.UserRequest.perform(UserRequest.java:118)
    at hudson.remoting.UserRequest.perform(UserRequest.java:48)
    at hudson.remoting.Request$2.run(Request.java:326)
    at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:724)
Caused by: org.apache.maven.plugin.MojoFailureException: Cannot prepare the 
release because you have local modifications : 
[target/maven-archiver/pom.properties:modified]
[target/surefire-reports/TEST-org.myco.subco.AppTest.xml:modified]
[target/surefire-reports/org.myco.subco.AppTest.txt:modified]
[target/test-1.1-SNAPSHOT.jar:unknown]

    at 
org.apache.maven.plugins.release.PrepareReleaseMojo.prepareRelease(PrepareReleaseMojo.java:219)
    at 
org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:181)
    at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    ... 27 more
Caused by: org.apache.maven.shared.release.ReleaseFailureException: Cannot 
prepare the release because you have local modifications : 
[target/maven-archiver/pom.properties:modified]
[target/surefire-reports/TEST-org.myco.subco.AppTest.xml:modified]
[target/surefire-reports/org.myco.subco.AppTest.txt:modified]
[target/test-1.1-SNAPSHOT.jar:unknown]

    at 
org.apache.maven.shared.release.phase.ScmCheckModificationsPhase.execute(ScmCheckModificationsPhase.java:141)
    at 
org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:203)
    at 
org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:140)
    at 
org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:103)
    at 
org.apache.maven.plugins.release.PrepareReleaseMojo.prepareRelease(PrepareReleaseMojo.java:211)
    ... 30 more
An attempt to send an e-mail to empty list of recipients, ignored.
channel stopped
An attempt to send an e-mail to empty list of recipients, ignored.
Finished: FAILURE

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to