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

cvs tag plugin doesn't work on slave servers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • cvs-tag-plugin
    • None
    • Platform: All, OS: Linux

      Using cvs-tag version 1.3 on Hudson 1.282, I'm unable to get the post-build cvs
      tag to work when it's run on a slave node. It appears to be related to making
      the tmp directory where the command is executed. The plugin works fine on jobs
      run on the master node.

      Some nodes are more verbose than others. This is a quiet node:

      Executing tag command: cvs -d :pserver:dev@cvs.tek.foo.com:/usr/local/cvsroot
      rtag -r release-23 TEST-200902121629 foo
      [hudson132373tmp] $ cvs -d :pserver:dev@cvs.tek.foo.com:/usr/local/cvsroot rtag
      -r release-23 TEST-200902121629 foo
      /tmp/hudson132373tmp: No such file or directory
      FATAL: Perform CVS tagging on succesful build failed. exit code=255
      cleaning up /tmp/hudson132373tmp

      And a more verbose failure on a different node:

      Executing tag command: cvs -d :pserver:cm@cvscm.tek.foo.com:/usr/local/cvsroot
      rtag -r release-23 TEST-200902121637 foo
      [hudson139965tmp] $ cvs -d :pserver:cm@cvscm.tek.foo.com:/usr/local/cvsroot rtag
      -r release-23 TEST-200902121637 foo
      ERROR: Cannot run program "cvs" (in directory "/tmp/hudson139965tmp"):
      java.io.IOException: error=2, No such file or directory
      java.io.IOException: Cannot run program "cvs" (in directory
      "/tmp/hudson139965tmp"): java.io.IOException: error=2, No such file or directory
      at java.lang.ProcessBuilder.start(Unknown Source)
      at hudson.Proc$LocalProc.<init>(Proc.java:127)
      at hudson.Proc$LocalProc.<init>(Proc.java:105)
      at hudson.Launcher$LocalLauncher.createLocalProc(Launcher.java:338)
      at hudson.Launcher$LocalLauncher.launch(Launcher.java:329)
      at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:444)
      at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:428)
      at hudson.remoting.UserRequest.perform(UserRequest.java:92)
      at hudson.remoting.UserRequest.perform(UserRequest.java:46)
      at hudson.remoting.Request$2.run(Request.java:236)
      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.io.IOException: java.io.IOException: error=2, No such file or
      directory
      at java.lang.UNIXProcess.<init>(Unknown Source)
      at java.lang.ProcessImpl.start(Unknown Source)
      ... 16 more
      IOException occurred: java.io.IOException: Cannot run program "cvs" (in
      directory "/tmp/hudson139965tmp"): java.io.IOException: error=2, No such file or
      directory
      cleaning up /tmp/hudson139965tmp

            btrim btrim
            woneill woneill
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: