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

Artifactory Plugin stuck on "artifactoryMavenBuild" in Pipeline after latest upgrade of plugin

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • artifactory-plugin
    • None
    • Jenkins ver. 2.150.2
      Artifactory Plugin 3.1.0
      All plugins are up-to-date

      We upgraded the artifactory plugin to 3.0.0 now (3.1.0) and our Pipeline builds stuck on artifactoryMavenBuild:

      [Pipeline] { (Maven Build)
      [Pipeline] script
      [Pipeline] {
      [Pipeline] newBuildInfo
      [Pipeline] artifactoryMavenBuild
      


      This is pipeline configuration:
      Artifactory server is predefined in general configuration, also as credentialsId and rtMaven.tool (Maven)

       

      def server = Artifactory.server "Master"
      server.credentialsId = 'Artifactory'
      def rtMaven = Artifactory.newMavenBuild()
      rtMaven.tool = "Maven"
      def buildInfo
      
      stage('Maven Build') {
          steps {
              script {
                  buildInfo = rtMaven.run pom: 'appname/pom.xml', goals: '-U clean install -P dev -Dmaster.name=${Cluster} -Dcore.version=${CORE_VERSION}'
                  buildInfo.retention maxBuilds: 10, maxDays: 5, deleteBuildArtifacts: true
              }
          }
      }
      

          [JENKINS-55975] Artifactory Plugin stuck on "artifactoryMavenBuild" in Pipeline after latest upgrade of plugin

          Kalin Borisov added a comment -

          I just downgrade:

          Git client 3.0.0-rc 2.7.6

          And now is working?!

          Kalin Borisov added a comment - I just downgrade: Git client 3.0.0-rc 2.7.6 And now is working?!

          Elton Ramalho added a comment -

          Same as Here. But I can't find a solution.
          Downgrading Git client doesn't work as well.

          Even in a fresh instalation, 

          Jenkins 2.138.3
          Artifactory 3.1.0 

           

           

          Elton Ramalho added a comment - Same as Here. But I can't find a solution. Downgrading Git client doesn't work as well. Even in a fresh instalation,  Jenkins 2.138.3 Artifactory 3.1.0     

          Kalin Borisov added a comment -

          eltonr, could you please try to downgrade also git to 3.9.3 version.
          I notice after doing that, Jenkins start to work fast as usual.
          Seems those two "rc" versions slow down for unknown reason Jenkins.

          Kalin Borisov added a comment - eltonr , could you please try to downgrade also git to 3.9.3 version. I notice after doing that, Jenkins start to work fast as usual. Seems those two "rc" versions slow down for unknown reason Jenkins.

          Elton Ramalho added a comment -

          Thanks bgofche!
          Solved for me. In my case, I used Artifactory plugin at version 2.16.2,
          due to jdk 7 build.

          git plugin = 3.9.3
          git-client plugin= 2.7.6
          Artifactory plugin = 2.16.2 

           

          Elton Ramalho added a comment - Thanks bgofche ! Solved for me. In my case, I used Artifactory plugin at version 2.16.2, due to jdk 7 build. git plugin = 3.9.3 git-client plugin= 2.7.6 Artifactory plugin = 2.16.2   

          I believe that https://github.com/jfrog/jenkins-artifactory-plugin/pull/93 discusses a permanent solution.

          Eyal Ben Moshe added a comment - I believe that https://github.com/jfrog/jenkins-artifactory-plugin/pull/93  discusses a permanent solution.

          Kalin Borisov added a comment - - edited

          eltonr, I believe you can use also Artifactory 3.1.0, as eyalbe mention, issue coming from JGit Repository.getRef(). So you can skip git,git-client at least in my case is working.

          Kalin Borisov added a comment - - edited eltonr , I believe you can use also Artifactory 3.1.0, as eyalbe mention, issue coming from JGit Repository.getRef(). So you can skip git,git-client at least in my case is working.

          Update:

          https://github.com/mtgerb contributed a fix for this issue - thank you https://github.com/mtgerb!

          There's a download link to a snapshot version with the fix. The details are here:

          https://github.com/jfrog/jenkins-artifactory-plugin/pull/93

          Eyal Ben Moshe added a comment - Update: https://github.com/mtgerb  contributed a fix for this issue - thank you https://github.com/mtgerb! There's a download link to a snapshot version with the fix. The details are here: https://github.com/jfrog/jenkins-artifactory-plugin/pull/93

            eyalbe Eyal Ben Moshe
            bgofche Kalin Borisov
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: