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

SCM poll retrieves system environment variables from Master even though execution is on slave

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • clearcase-plugin
    • None
    • Windows XP 32bit on Master
      Windows 7 64bit on Slave

      In case I configure "Poll SCM" via "Build Triggers" section and the polling is kicked off, cleartool execution will fail.

      --------------------------------------
      FATAL: Base ClearCase failed. exit code=-1073741515
      FATAL: cleartool did not return the expected exit code. Command line="catcs -tag XYZ", actual exit code=-1073741515
      java.io.IOException: cleartool did not return the expected exit code. Command line="catcs -tag XYZ", actual exit code=-1073741515
      at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:121)
      at hudson.plugins.clearcase.ClearToolExec.runAndProcessOutput(ClearToolExec.java:812)
      at hudson.plugins.clearcase.ClearToolExec.catcs(ClearToolExec.java:84)
      at hudson.plugins.clearcase.ClearCaseSCM.hasNewConfigSpec(ClearCaseSCM.java:301)
      at hudson.plugins.clearcase.AbstractClearCaseScm.compareRemoteRevisionWith(AbstractClearCaseScm.java:726)
      at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
      at hudson.scm.SCM.poll(SCM.java:373)
      at hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1585)
      at hudson.model.AbstractProject._poll(AbstractProject.java:1555)
      at hudson.model.AbstractProject.poll(AbstractProject.java:1487)
      at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:439)
      at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:468)
      at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
      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)
      Done. Took 1 min 18 sec
      No changes
      --------------------------------------

      Tried to investigate the issue (checked cleartool execution with process explorer) on my own and figured out that the Cleartool launcher used the environment variables of the Jenkins Master even though the job and polling was executed on the Jenkins slave as intended. Considering Master is 32bit (C:\Program Files\IBM\...) and slave is 64bit environment (C:\Program Files (x86)\IBM\...) all necessary DLLs for cleartool could not be found due to different Path variables necessary between 32 and 64bit OS. I´m using EnvInject plugin as well. Not sure if this issue is caused by either "Jenkins poll SCM" or "Environment Injector" plugin. Please reassign if necessary.

            vlatombe Vincent Latombe
            maedula Hans Baer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: