Uploaded image for project: 'Gradle Artifactory Plug-in'
  1. Gradle Artifactory Plug-in
  2. GAP-292

UnsupportedOperationException when running Gradle container in Jenkins pipeline

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 4.7.3
    • Fix Version/s: 4.7.4
    • Labels:
      None

      Description

      Container env:

      + gradle --version
      ------------------------------------------------------------
      Gradle 4.7
      ------------------------------------------------------------
      
      Build time:   2018-04-18 09:09:12 UTC
      Revision:     b9a962bf70638332300e7f810689cb2febbd4a6c
      
      Groovy:       2.4.12
      Ant:          Apache Ant(TM) version 1.9.9 compiled on February 2 2017
      JVM:          1.8.0_171 (Oracle Corporation 25.171-b11)
      OS:           Linux 4.9.87-linuxkit-aufs amd64
      

      The pipeline:

      docker.image('gradle').inside {
              rtGradle.run rootDir: 'gradle-examples/gradle-example/', buildFile: 'build.gradle', tasks: 'aP --stacktrace', buildInfo: buildInfo
      }

      Results:

      Exception is:
      java.lang.UnsupportedOperationException
      	at com.google.common.collect.ImmutableMap.put(ImmutableMap.java:326)
      	at com.google.common.collect.BiMap$put.call(Unknown Source)
      	at BuildInfoPluginListener.projectsLoaded(/Users/yahavi/jenkins_home/workspace/gradle-in-docker-pipeline@tmp/init-artifactory1008977406220487472gradle:14)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                barb Bar Belity
                Reporter:
                yahavi Yahav Itzhak
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: