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

ArtifactoryPluginTest#gradle_integration test is failing

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • artifactory-plugin
    • None

      The ArtifactoryPluginTest#gradle_integration test from the ATH is failing, with the following error:

      Results :
      
      Failed tests: 
        ArtifactoryPluginTest.gradle_integration:107 
      Expected: Build result SUCCESS
           but: was FAILURE. Console output:
      Started by user anonymous
      Building in workspace /Users/mfranco/code/acceptance-test-harness/target/jenkins1064366680321618767home/jobs/provincial_base/workspace
      Jenkins Artifactory Plugin version: 2.7.2
      [workspace] $ /bin/sh -xe /var/folders/xl/znnk3kl954s_yyqvnmhq1fl00000gn/T/hudson3600718021309164939.sh
      + base64 --decode
      + unzip -o archive.zip
      Archive:  archive.zip
        inflating: build.gradle            
         creating: gradle/
         creating: gradle/wrapper/
        inflating: gradle/wrapper/gradle-wrapper.jar  
        inflating: gradle/wrapper/gradle-wrapper.properties  
        inflating: gradlew                 
        inflating: gradlew.bat             
         creating: src/
         creating: src/main/
         creating: src/main/java/
         creating: src/main/java/org/
         creating: src/main/java/org/gradle/
        inflating: src/main/java/org/gradle/Person.java  
         creating: src/main/resources/
         creating: src/main/resources/org/
         creating: src/main/resources/org/gradle/
        inflating: src/main/resources/org/gradle/resource.xml  
         creating: src/test/
         creating: src/test/java/
         creating: src/test/java/org/
         creating: src/test/java/org/gradle/
        inflating: src/test/java/org/gradle/PersonTest.java  
         creating: src/test/resources/
         creating: src/test/resources/org/
         creating: src/test/resources/org/gradle/
        inflating: src/test/resources/org/gradle/test-resource.xml  
      [Gradle] - Launching build.
      Unpacking https://services.gradle.org/distributions/gradle-2.0-bin.zip to /Users/mfranco/code/acceptance-test-harness/target/jenkins1064366680321618767home/tools/hudson.plugins.gradle.GradleInstallation/gradle_2.0 on Jenkins
      [workspace] $ /Users/mfranco/code/acceptance-test-harness/target/jenkins1064366680321618767home/tools/hudson.plugins.gradle.GradleInstallation/gradle_2.0/bin/gradle --init-script /var/folders/xl/znnk3kl954s_yyqvnmhq1fl00000gn/T/init-artifactory4392280943420468800gradle build artifactoryPublish
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Could not find method getPluginManager() for arguments [] on root project 'workspace'.
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
      
      BUILD FAILED
      
      Total time: 9.644 secs
      Build step 'Invoke Gradle script' changed build result to FAILURE
      Build step 'Invoke Gradle script' marked build as failure
      Finished: FAILURE
      

          [JENKINS-39323] ArtifactoryPluginTest#gradle_integration test is failing

          Scott Hebert added a comment -

          I am seeing this in my own test environment too.

          After some digging, the problem is coming from this: https://github.com/JFrogDev/build-info/commit/468139fd44cb124c41b2bdfda49ed5f0fc4e5c21

          gradle.rootProject does not seem to have a method called "getPluginManager"

          Here is the stack trace from a run with the debug option:

          16:24:26.366 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.internal.MissingMethodException: Could not find method getPluginManager() for arguments [] on root project 'YourNewName'.
          16:24:26.366 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractDynamicObject.methodMissingException(AbstractDynamicObject.java:68)
          16:24:26.366 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractDynamicObject.invokeMethod(AbstractDynamicObject.java:56)
          16:24:26.367 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:172)
          16:24:26.367 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.DefaultProject_Decorated.invokeMethod(Unknown Source)
          16:24:26.368 [ERROR] [org.gradle.BuildExceptionReporter] at org.jfrog.gradle.plugin.artifactory.extractor.listener.ProjectsEvaluatedBuildListener.projectsEvaluated(ProjectsEvaluatedBuildListener.groovy:51)

          ProjectsEvaluatedBuildListener.groovy seems to be part of build-info-extractor-gradle-4.4.5.jar

          Scott Hebert added a comment - I am seeing this in my own test environment too. After some digging, the problem is coming from this: https://github.com/JFrogDev/build-info/commit/468139fd44cb124c41b2bdfda49ed5f0fc4e5c21 gradle.rootProject does not seem to have a method called "getPluginManager" Here is the stack trace from a run with the debug option: 16:24:26.366 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.internal.MissingMethodException: Could not find method getPluginManager() for arguments [] on root project 'YourNewName'. 16:24:26.366 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractDynamicObject.methodMissingException(AbstractDynamicObject.java:68) 16:24:26.366 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractDynamicObject.invokeMethod(AbstractDynamicObject.java:56) 16:24:26.367 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:172) 16:24:26.367 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.DefaultProject_Decorated.invokeMethod(Unknown Source) 16:24:26.368 [ERROR] [org.gradle.BuildExceptionReporter] at org.jfrog.gradle.plugin.artifactory.extractor.listener.ProjectsEvaluatedBuildListener.projectsEvaluated(ProjectsEvaluatedBuildListener.groovy:51) ProjectsEvaluatedBuildListener.groovy seems to be part of build-info-extractor-gradle-4.4.5.jar

          Code changed in jenkins
          User: Scott Hebert
          Path:
          src/main/java/org/jenkinsci/test/acceptance/plugins/artifactory/ArtifactoryPublisher.java
          src/test/java/plugins/ArtifactoryPluginTest.java
          http://jenkins-ci.org/commit/acceptance-test-harness/6a8452ff2f018453c5971fad2bc1bc0a9ac5397a
          Log:
          Fix Artifactory plugin maven test and ignore Gradle test

          • Update maven_integration test to enter repos directly.
          • Due to JENKINS-39323, we are skipping the gradle_intregration test.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Scott Hebert Path: src/main/java/org/jenkinsci/test/acceptance/plugins/artifactory/ArtifactoryPublisher.java src/test/java/plugins/ArtifactoryPluginTest.java http://jenkins-ci.org/commit/acceptance-test-harness/6a8452ff2f018453c5971fad2bc1bc0a9ac5397a Log: Fix Artifactory plugin maven test and ignore Gradle test Update maven_integration test to enter repos directly. Due to JENKINS-39323 , we are skipping the gradle_intregration test.

          javabrett added a comment -

          I see this error with Gradle 2.0, which is what the acceptance test installs.  We should try again re-enabled with current Gradle 4.3.1.

          javabrett added a comment - I see this error with Gradle 2.0, which is what the acceptance test installs.  We should try again re-enabled with current Gradle 4.3.1.

            Unassigned Unassigned
            mfranco Manuel Franco
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: