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

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

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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

        Attachments

          Issue Links

            Activity

            gloparm Gabriel Lopez created issue -
            gloparm Gabriel Lopez made changes -
            Field Original Value New Value
            Priority Critical [ 2 ] Blocker [ 1 ]
            gloparm Gabriel Lopez made changes -
            Description 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
            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
            gloparm Gabriel Lopez made changes -
            Link This issue is related to JENKINS-33467 [ JENKINS-33467 ]
            lvaikunt Lakshmi Narasimhan Vaikuntam made changes -
            Assignee Lakshmi Narasimhan Vaikuntam [ lvaikunt ]
            lvaikunt Lakshmi Narasimhan Vaikuntam made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            lvaikunt Lakshmi Narasimhan Vaikuntam made changes -
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Resolved [ 5 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 170151 ] JNJira + In-Review [ 198795 ]

              People

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

                Dates

                Created:
                Updated:
                Resolved: