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

Clearcase polling fails if view name uses ${NODE_NAME}

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • clearcase-plugin
    • None

      We just installed clearcase 1.1 plugin and the polling fails as it is not resolving the ${NODE_NAME} variable when executing the lshistory command. It works when you manually kick off a build though.

      From the logs:

      INFO | jvm 1 | 2010/01/08 08:30:55 | Jan 8, 2010 8:30:55 AM hudson.plugins.clearcase.ClearCaseSCM createHistoryAction
      INFO | jvm 1 | 2010/01/08 08:30:55 | WARNING: Exception when running 'cleartool pwv'
      INFO | jvm 1 | 2010/01/08 08:30:55 | java.io.IOException: Cannot run program "cleartool" (in directory "/opt/devlocal/hudson/workspace/eit-insight-desktop-2.5-ci/hudson_${NODE_NAME}_eit-insight-desktop-2.5-ci"): java.io.IOException: error=2, No such file or directory
      INFO | jvm 1 | 2010/01/08 08:30:55 | at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
      INFO | jvm 1 | 2010/01/08 08:30:55 | at hudson.Proc$LocalProc.<init>(Proc.java:145)
      INFO | jvm 1 | 2010/01/08 08:30:55 | at hudson.Proc$LocalProc.<init>(Proc.java:118)
      INFO | jvm 1 | 2010/01/08 08:30:55 | at hudson.Launcher$LocalLauncher.launch(Launcher.java:633)
      INFO | jvm 1 | 2010/01/08 08:30:55 | at hudson.Launcher$ProcStarter.start(Launcher.java:268)
      INFO | jvm 1 | 2010/01/08 08:30:55 | at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:775)
      INFO | jvm 1 | 2010/01/08 08:30:55 | at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:753)
      INFO | jvm 1 | 2010/01/08 08:30:55 | at hudson.remoting.UserRequest.perform(UserRequest.java:104)
      INFO | jvm 1 | 2010/01/08 08:30:55 | at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      INFO | jvm 1 | 2010/01/08 08:30:55 | at hudson.remoting.Request$2.run(Request.java:244)
      INFO | jvm 1 | 2010/01/08 08:30:55 | at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      INFO | jvm 1 | 2010/01/08 08:30:55 | at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      INFO | jvm 1 | 2010/01/08 08:30:55 | at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      INFO | jvm 1 | 2010/01/08 08:30:55 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
      INFO | jvm 1 | 2010/01/08 08:30:55 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
      INFO | jvm 1 | 2010/01/08 08:30:55 | at java.lang.Thread.run(Thread.java:619)
      INFO | jvm 1 | 2010/01/08 08:30:55 | Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
      INFO | jvm 1 | 2010/01/08 08:30:55 | at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
      INFO | jvm 1 | 2010/01/08 08:30:55 | at java.lang.ProcessImpl.start(ProcessImpl.java:65)
      INFO | jvm 1 | 2010/01/08 08:30:55 | at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
      INFO | jvm 1 | 2010/01/08 08:30:55 | ... 15 more
      INFO | jvm 1 | 2010/01/08 08:30:55 | Jan 8, 2010 8:30:55 AM hudson.plugins.clearcase.util.BuildVariableResolver resolve
      INFO | jvm 1 | 2010/01/08 08:30:55 | WARNING: Variable name 'NODE_NAME' look up failed because of java.lang.NullPointerException

            abayer Andrew Bayer
            petehayes Peter Hayes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: