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

Jenkins use different RTC Build Toolkit path as the one set in system configure

    Details

    • Similar Issues:

      Description

      The jenkins master is on a linux server, the slave use for build is on windows. the build toolkit has already configured and path set to e:\build_tools\rtc\4.0.7\jazz\buildsystem\buildtoolkit.

      When trigger the build, the code from RTC is check out and maven build command is also run successfully, but it get an error when build end. Shows can't find the Built toolkit directory. But the path it try to find is like linux absolute path * /*e:\build_tools\rtc\4.0.7\jazz\buildsystem\buildtoolkit

      The Team Concert Plugin version i am using is 1.1.9.4, jenkins version Jenkins 1.609.1.1. The build log is show as below:

      RTC : checkout...
      RTC Checkout : Source control setup
      RTC Checkout : Accepting changes into workspace "xFramework-dedicated-RTC-build Workspace" ...
      RTC Checkout : Deleting fetch destination "E:\jenkins\workspace\Testing_CoE\xFramework_Automated_Build\build_HDIpcNO8EeW-vYml2jk5ig" before fetching ...
      RTC Checkout : Fetching files to fetch destination "E:\jenkins\workspace\Testing_CoE\xFramework_Automated_Build\build_HDIpcNO8EeW-vYml2jk5ig" ...
      RTC Checkout : Fetching Completed
      [xFramework_Automated_Build] $ cmd.exe /C '"E:\build_tools\maven\apache-maven-3.0.3\bin\mvn.bat -f build/_HDIpcNO8EeW-vYml2jk5ig/xframework/pom.xml -DbuildResultUUID= clean deploy -U -DskipTests && exit %%ERRORLEVEL%%"'
      [INFO] Scanning for projects...
      [INFO]
      ...
      ...
      ...
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 3:01.714s
      [INFO] Finished at: Wed Feb 17 13:23:11 GMT 2016
      [INFO] Final Memory: 24M/372M
      [INFO] ------------------------------------------------------------------------
      FATAL: Error marking RTC build as completed: Built toolkit directory not found at: /e:\build_tools\rtc\4.0.7\jazz\buildsystem\buildtoolkit
      The RTC build may still be running. You may need to manually cancel it in RTC.
      java.lang.IllegalArgumentException: Built toolkit directory not found at: /e:\build_tools\rtc\4.0.7\jazz\buildsystem\buildtoolkit
      at com.ibm.team.build.internal.hjplugin.RTCFacadeFactory.newFacade(RTCFacadeFactory.java:172)
      at com.ibm.team.build.internal.hjplugin.RTCFacadeFactory.getFacade(RTCFacadeFactory.java:71)
      at com.ibm.team.build.internal.hjplugin.util.RTCFacadeFacade.terminateBuild(RTCFacadeFacade.java:565)
      at com.ibm.team.build.internal.hjplugin.RTCRunListener.onCompleted(RTCRunListener.java:83)
      at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:199)
      at hudson.model.Run.execute(Run.java:1786)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:374)
      Finished: SUCCESS

        Attachments

          Activity

          Hide
          theonlinewolf Wolf Molnar added a comment - - edited

          It ran on the slave (Windows) If I install tool on the Master, then this project download files from RTC to the slave.

          Show
          theonlinewolf Wolf Molnar added a comment - - edited It ran on the slave (Windows) If I install tool on the Master, then this project download files from RTC to the slave.
          Hide
          ssangaiah Sridevi Sangaiah added a comment -

          The console output should have information on whether the build was executed on the master or slave.

          Show
          ssangaiah Sridevi Sangaiah added a comment - The console output should have information on whether the build was executed on the master or slave.
          Hide
          theonlinewolf Wolf Molnar added a comment -

          [EnvInject] - Loading node environment variables.
          Building remotely on WinSer 01 (WindowsServer WS01) in workspace D:\jenkins\workspace\workspace\BuildTools from RTC
          RTC : checkout...
          FATAL: RTC : checkout failure: Built toolkit directory not found at: /tmp/test
          java.lang.IllegalArgumentException: Built toolkit directory not found at: /tmp/test
          at com.ibm.team.build.internal.hjplugin.RTCFacadeFactory.newFacade(RTCFacadeFactory.java:185)
          at com.ibm.team.build.internal.hjplugin.RTCFacadeFactory.getFacade(RTCFacadeFactory.java:71)
          at com.ibm.team.build.internal.hjplugin.util.Helper.getValueForBuildStream(Helper.java:464)
          at com.ibm.team.build.internal.hjplugin.util.Helper.getSnapshotUUIDFromPreviousBuild(Helper.java:305)
          at com.ibm.team.build.internal.hjplugin.RTCScm.checkout(RTCScm.java:2047)
          at hudson.scm.SCM.checkout(SCM.java:504)
          at hudson.model.AbstractProject.checkout(AbstractProject.java:1208)
          at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
          at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
          at hudson.model.Run.execute(Run.java:1810)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:429)
          ERROR: RTC : checkout failure: Built toolkit directory not found at: /tmp/test
          Finished: FAILURE

          Show
          theonlinewolf Wolf Molnar added a comment - [EnvInject] - Loading node environment variables. Building remotely on WinSer 01 (WindowsServer WS01) in workspace D:\jenkins\workspace\workspace\BuildTools from RTC RTC : checkout... FATAL: RTC : checkout failure: Built toolkit directory not found at: /tmp/test java.lang.IllegalArgumentException: Built toolkit directory not found at: /tmp/test at com.ibm.team.build.internal.hjplugin.RTCFacadeFactory.newFacade(RTCFacadeFactory.java:185) at com.ibm.team.build.internal.hjplugin.RTCFacadeFactory.getFacade(RTCFacadeFactory.java:71) at com.ibm.team.build.internal.hjplugin.util.Helper.getValueForBuildStream(Helper.java:464) at com.ibm.team.build.internal.hjplugin.util.Helper.getSnapshotUUIDFromPreviousBuild(Helper.java:305) at com.ibm.team.build.internal.hjplugin.RTCScm.checkout(RTCScm.java:2047) at hudson.scm.SCM.checkout(SCM.java:504) at hudson.model.AbstractProject.checkout(AbstractProject.java:1208) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1810) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) ERROR: RTC : checkout failure: Built toolkit directory not found at: /tmp/test Finished: FAILURE
          Hide
          ssangaiah Sridevi Sangaiah added a comment -

          Looks like the Jenkins project is configured to load source from a Stream. A valid build toolkit is required to retrieve certain details in a step that is performed in the master before checkout runs in the slave.

          We will update the teamconcert plugin wiki page with this limitation, shortly.

          Show
          ssangaiah Sridevi Sangaiah added a comment - Looks like the Jenkins project is configured to load source from a Stream. A valid build toolkit is required to retrieve certain details in a step that is performed in the master before checkout runs in the slave. We will update the teamconcert plugin wiki page with this limitation, shortly.
          Hide
          lvaikunt Lakshmi Narasimhan Vaikuntam added a comment -

          Given that valid build toolkit is required on the master, not only for builds but also for polling, I am resolving this bug as not a defect.

           

          Please note that polling happens only on master. Therefore a valid build toolkit is needed for all configurations for polling to work except snapshot which doesn't support polling.

          Show
          lvaikunt Lakshmi Narasimhan Vaikuntam added a comment - Given that valid build toolkit is required on the master, not only for builds but also for polling, I am resolving this bug as not a defect.   Please note that polling happens only on master. Therefore a valid build toolkit is needed for all configurations for polling to work except snapshot which doesn't support polling.

            People

            • Assignee:
              Unassigned
              Reporter:
              lyc1986830 yc li
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: