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

java.lang.UnsupportedOperationException when checking out code in Jenkins 1.655

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

      Teamconcert fails to check out code when the builds are requested from RTC.

      This is due to changes in Jenkins 1.655, specifically in JENKINS-33467 and this commit.

      There, it is mentioned that some plugins break due to the new changes, and need to be changed. Teamconcert suffers the same issue, it assumes that CauseAction.getCauses is not inmutable in this line.

      See fix from another plugin.

      Please fix it ASAP, as we can't update jenkins.

      Full stacktrace:
      RTC : checkout...
      RTC : Build initiated by request from RTC
      FATAL: RTC : checkout failure: null
      java.lang.UnsupportedOperationException
      at java.util.Collections$UnmodifiableCollection.add(Collections.java:1075)
      at com.ibm.team.build.internal.hjplugin.RTCScm.checkout(RTCScm.java:1158)
      at hudson.scm.SCM.checkout(SCM.java:485)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
      at hudson.model.Run.execute(Run.java:1738)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:410)
      ERROR: RTC : checkout failure: null

          [JENKINS-34117] java.lang.UnsupportedOperationException when checking out code in Jenkins 1.655

          Gabriel Lopez created issue -
          Gabriel Lopez made changes -
          Priority Original: Critical [ 2 ] New: Blocker [ 1 ]
          Gabriel Lopez made changes -
          Description Original: Teamconcert fails to checking out code when the builds are requested from RTC.

          This is due to changes in Jenkins 1.655, specifically in JENKINS-33467 and [this commit|https://github.com/jenkinsci/jenkins/commit/4adee7597aad7a338db8d3eb320575ae618a8c81].

          There is mentioned that some plugins break due to the new changes and need to be changed. Teamconcert has the same issue,it assumes that CauseAction.getCauses is not inmutable, in [this line|https://github.com/jenkinsci/teamconcert-plugin/blob/master/com.ibm.team.build.hjplugin/src/main/java/com/ibm/team/build/internal/hjplugin/RTCScm.java#L1158].

          [See fix|https://github.com/Diabol/delivery-pipeline-plugin/commit/541cca5f10d2c3419a10514f61aa9d238a01d6e4] from another plugin.

          Please fix it ASAP, as we can't update jenkins.
           
          Full stacktrace:
          RTC : checkout...
          RTC : Build initiated by request from RTC
          FATAL: RTC : checkout failure: null
          java.lang.UnsupportedOperationException
          at java.util.Collections$UnmodifiableCollection.add(Collections.java:1075)
          at com.ibm.team.build.internal.hjplugin.RTCScm.checkout(RTCScm.java:1158)
          at hudson.scm.SCM.checkout(SCM.java:485)
          at hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
          at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
          at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
          at hudson.model.Run.execute(Run.java:1738)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:410)
          ERROR: RTC : checkout failure: null
          New: Teamconcert fails to check out code when the builds are requested from RTC.

          This is due to changes in Jenkins 1.655, specifically in JENKINS-33467 and [this commit|https://github.com/jenkinsci/jenkins/commit/4adee7597aad7a338db8d3eb320575ae618a8c81].

          There, it is mentioned that some plugins break due to the new changes, and need to be changed. Teamconcert suffers the same issue, it assumes that CauseAction.getCauses is not inmutable in [this line|https://github.com/jenkinsci/teamconcert-plugin/blob/master/com.ibm.team.build.hjplugin/src/main/java/com/ibm/team/build/internal/hjplugin/RTCScm.java#L1158].

          [See fix|https://github.com/Diabol/delivery-pipeline-plugin/commit/541cca5f10d2c3419a10514f61aa9d238a01d6e4] from another plugin.

          Please fix it ASAP, as we can't update jenkins.
           
          Full stacktrace:
          RTC : checkout...
          RTC : Build initiated by request from RTC
          FATAL: RTC : checkout failure: null
          java.lang.UnsupportedOperationException
          at java.util.Collections$UnmodifiableCollection.add(Collections.java:1075)
          at com.ibm.team.build.internal.hjplugin.RTCScm.checkout(RTCScm.java:1158)
          at hudson.scm.SCM.checkout(SCM.java:485)
          at hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
          at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
          at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
          at hudson.model.Run.execute(Run.java:1738)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:410)
          ERROR: RTC : checkout failure: null
          Gabriel Lopez made changes -
          Link New: This issue is related to JENKINS-33467 [ JENKINS-33467 ]
          Lakshmi Narasimhan Vaikuntam made changes -
          Assignee New: Lakshmi Narasimhan Vaikuntam [ lvaikunt ]
          Lakshmi Narasimhan Vaikuntam made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Lakshmi Narasimhan Vaikuntam made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 170151 ] New: JNJira + In-Review [ 198795 ]

            lvaikunt Lakshmi Narasimhan Vaikuntam
            gloparm Gabriel Lopez
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: