Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-4363

While executing maven release plugin, an error is being thrown when verifying that there are no local modifications.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Critical Critical
    • subversion-plugin
    • None
    • Platform: PC, OS: Linux

      I'm using version 1.322. When using the
      http://wiki.jenkins-ci.org/display/JENKINS/M2+Release+Plugin or just creating a
      new job that performs a maven release, the command "/bin/sh -c cd <full path to
      workspace> && svn --non-interactive status" is failing, with the following
      message "/bin/sh: svn: command not found".

      I'm not sure where Hudson is trying to run this command relative to the
      workspace, but I navigated to the workspace location from the command line and
      ran "mvn -e -B release:clean release:prepare release:perform" and everything
      worked perfectly fine.

      Console output after project was successfully checked out.
      ###########################################################################
      Parsing POMs
      [trunk] $ /usr/java/latest/bin/java -cp
      /apps/hudson/.hudson/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.322.jar:/apps/hudson/applications/apache-maven-2.1.0/boot/classworlds-1.1.jar
      hudson.maven.agent.Main /apps/hudson/applications/apache-maven-2.1.0
      /apps/hudson/applications/apache-tomcat-6.0.18/work/Catalina/localhost/hudson/WEB-INF/lib/remoting-1.322.jar
      /apps/hudson/.hudson/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.322.jar 34758
      /apps/hudson/.hudson/plugins/maven-plugin/WEB-INF/lib/maven2.1-interceptor-1.2.jar
      ���channel started
      Executing Maven: -B -f
      /apps/hudson/.hudson/jobs/Sample-Multi-Module/workspace/trunk/pom.xml -e
      release:prepare release:perform+ Error stacktraces are turned on.

      [INFO] Scanning for projects...
      [INFO] Reactor build order:
      [INFO] Multi-Module
      [INFO] Multi-Module [Module 1]
      [INFO] Multi-Module [Module 2]
      [INFO] Multi-Module [Module 3]
      [INFO] Multi-Module [Module 3 - Sub Module 1]
      [INFO] Multi-Module [Module 3 - Sub Module 2]
      [INFO] Multi-Module [Module 3 - Sub Module 3]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Multi-Module
      [INFO] task-segment: [release:prepare, release:perform] (aggregator-style)
      [INFO] ------------------------------------------------------------------------
      [INFO] [release:prepare]
      [INFO] Verifying that there are no local modifications...
      [INFO] Executing: /bin/sh -c cd
      /apps/hudson/.hudson/jobs/Sample-Multi-Module/workspace/trunk && svn
      --non-interactive status
      [INFO] Working directory:
      /apps/hudson/.hudson/jobs/Sample-Multi-Module/workspace/trunk
      [HUDSON] Archiving
      /apps/hudson/.hudson/jobs/Sample-Multi-Module/workspace/trunk/pom.xml to
      /apps/hudson/.hudson/jobs/Sample-Multi-Module/modules/dte.sandbox.multi.module$multi-module/builds/2009-08-31_15-19-21/archive/dte.sandbox.multi.module/multi-module/1.0.3-SNAPSHOT/pom.xml
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Unable to check for local modifications
      Provider message:
      The svn command failed.
      Command output:
      /bin/sh: svn: command not found[INFO]
      ------------------------------------------------------------------------
      [INFO] Trace
      org.apache.maven.BuildFailureException: Unable to check for local modifications
      Provider message:
      The svn command failed.
      Command output:
      /bin/sh: svn: command not found

      at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:699)
      at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553)
      at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523)
      at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
      at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
      at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
      at
      org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      at hudson.maven.agent.Main.launch(Main.java:165)
      at hudson.maven.MavenBuilder.call(MavenBuilder.java:159)
      at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:685)
      at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:631)
      at hudson.remoting.UserRequest.perform(UserRequest.java:103)
      at hudson.remoting.UserRequest.perform(UserRequest.java:47)
      at hudson.remoting.Request$2.run(Request.java:236)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at
      java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: org.apache.maven.plugin.MojoFailureException: Unable to check for
      local modifications
      Provider message:
      The svn command failed.
      Command output:
      /bin/sh: svn: command not found

      at
      org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:169)
      at
      org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
      at
      hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:182)
      at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
      ... 28 more
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 3 seconds
      [INFO] Finished at: Mon Aug 31 15:48:36 MST 2009
      [INFO] Final Memory: 13M/25M
      [INFO] ------------------------------------------------------------------------

            Unassigned Unassigned
            bpmericle Brian Mericle
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: