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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Blocker
    • Resolution: Unresolved
    • Component/s: artifactory-plugin
    • Labels:
      None
    • Environment:
      Jenkins ver. 2.150.2
      Artifactory Plugin 3.1.0
      All plugins are up-to-date
    • Similar Issues:

      Description

      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
              }
          }
      }
      

        Attachments

          Activity

          Hide
          bgofche Kalin Borisov added a comment -

          I just downgrade:

          Git client 3.0.0-rc 2.7.6

          And now is working?!

          Show
          bgofche Kalin Borisov added a comment - I just downgrade: Git client 3.0.0-rc 2.7.6 And now is working?!
          Hide
          eltonr 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 

           

           

          Show
          eltonr 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     
          Hide
          bgofche Kalin Borisov added a comment -

          Elton Ramalho, 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.

          Show
          bgofche Kalin Borisov added a comment - Elton Ramalho , 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.
          Hide
          eltonr Elton Ramalho added a comment -

          Thanks Kalin Borisov!
          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 

           

          Show
          eltonr Elton Ramalho added a comment - Thanks Kalin Borisov ! 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   
          Hide
          eyalbe Eyal Ben Moshe added a comment -

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

          Show
          eyalbe Eyal Ben Moshe added a comment - I believe that https://github.com/jfrog/jenkins-artifactory-plugin/pull/93  discusses a permanent solution.
          Hide
          bgofche Kalin Borisov added a comment - - edited

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

          Show
          bgofche Kalin Borisov added a comment - - edited Elton Ramalho , I believe you can use also Artifactory 3.1.0, as Eyal Ben Moshe mention, issue coming from JGit Repository.getRef(). So you can skip git,git-client at least in my case is working.
          Hide
          eyalbe 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

          Show
          eyalbe 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

            People

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

              Dates

              Created:
              Updated: