Uploaded image for project: 'Jenkins Artifactory Plug-in'
  1. Jenkins Artifactory Plug-in
  2. HAP-1343

Gradle artifactoryPublish Publishing Failure

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: 3 - High
    • Resolution: Unresolved
    • Affects Version/s: 3.5.0, 3.6.0, 3.6.1
    • Fix Version/s: None
    • Component/s: Gradle
    • Labels:
      None
    • Environment:

      Jenkins core 2.204.2
      Gradle 4.6

      Description

      We just upgraded to the Artifactory plugin 3.5.0 and we have some Android gradle builds that appear to be failing in the artifactoryPublish stage with the below error.

      17:06:11 17:06:11.750 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
      17:06:11 17:06:11.750 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
      17:06:11 17:06:11.750 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
      17:06:11 17:06:11.750 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Failed to notify build listener.
      17:06:11 17:06:11.750 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > java.lang.NoClassDefFoundError: org/gradle/api/publish/internal/PublicationArtifactSet

      We tried to update to 3.6.0, 3.6.1 and 3.6.2 but received the same errors. It was only after downgrading to 3.4.1 that the artifacts were able to be published again.

      We are using "apply plugin: 'maven-publish'" so it doesn't appear to be caused by the deprecation of using just maven for publishing.

        Attachments

          Activity

            People

            Assignee:
            eyalb Eyal Ben Moshe
            Reporter:
            trent.dailey Trent Dailey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: