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

Jenkins Build Matrix fails with "Project uses the Artifactory Gradle Plugin" unchecked.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Not a Bug
    • Affects Version/s: 2.4.6
    • Fix Version/s: None
    • Component/s: Gradle
    • Labels:
      None

      Description

      Problem - When the Artifactory Gradle Plugin checkbox is unchecked, Jenkins is to use the Jenkins Artifactory plugin to generate the buildinfo. This causes the matrix build to fail.

      To Reproduce the problem -
      Jenkins 1.596 or above
      Jenkins Artifactory Plugin - 2.4.6
      Gradle Artifactory Plugin - 4.0
      Create a Jenkins Multi-configuration project
      Use gradle-examples/4/gradle-example project from github/JFrogDev - the artifactoryPublish.skip = true
      Uncheck the Artifactory Gradle Plugin in the Jenkins Artifactory Plug In
      Do the matrix bulid.

      Expected Result - build should succeed.
      Actual Result - same as reported by customer - snippets from the logs

      17:50:06.883 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
      17:50:06.883 [ERROR] [org.gradle.BuildExceptionReporter]
      17:50:06.883 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
      17:50:06.884 [ERROR] [org.gradle.BuildExceptionReporter] Build file '/var/jenkins_home/jobs/gradle_matrix/workspace/PLAT/linux/gradle-example/build.gradle' line: 27
      17:50:06.884 [ERROR] [org.gradle.BuildExceptionReporter]
      17:50:06.885 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
      17:50:06.885 [ERROR] [org.gradle.BuildExceptionReporter] A problem occurred evaluating root project 'gradle-example'.
      17:50:06.886 [ERROR] [org.gradle.BuildExceptionReporter] > Cannot cast object 'org.jfrog.gradle.plugin.artifactory.dsl.ArtifactoryPluginConvention@b29a18a' with class 'org.jfrog.gradle.plugin.artifactory.dsl.ArtifactoryPluginConvention' to class 'org.jfrog.gradle.plugin.artifactory.dsl.ArtifactoryPluginConvention'
      17:50:06.887 [ERROR] [org.gradle.BuildExceptionReporter]
      17:50:06.887 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
      17:50:06.888 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.GradleScriptException: A problem occurred evaluating root project 'gradle-example'.
      17:50:06.896 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:54)
      17:50:06.897 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:187)
      17:50:06.897 [ERROR] [org.gradle.BuildExceptionReporter] at

        Attachments

          Activity

            People

            • Assignee:
              romang Roman Gurevitch (Inactive)
              Reporter:
              stanley Stanley Fong (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: