Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 3.1.0
    • Fix Version/s: 3.1.1
    • Component/s: Common
    • Labels:
      None
    • Regression:
      Yes

      Description

      I use the Jenkins Artifactory Plugin in scripted mode. Till version 2.16 everything worked fine. With Version 3, it hangs when run is called. Tried Jenkins LTS and weekly.

       

      Jenkinsfile:

      node(label: 'linux') {
      def kserver = Artifactory.server 'konsecartifactory'
      def rtGradle = Artifactory.newGradleBuild()
      def buildInfo
      def uploadSpec = """{
      "files": [
      {
      "pattern": "build/libs/*-fat.jar",
      "target": "libs-snapshot-local/com/konsec/xxxx"
      }
      ]
      }"""
      
      checkout scm
      
      stage('Artifactory configuration') {
      // Tool name from Jenkins configuration
      rtGradle.usesPlugin = true
      rtGradle.useWrapper = true
      // Set Artifactory repositories for dependencies resolution and artifacts deployment.
      rtGradle.resolver server: kserver, repo: 'libs-release'
      rtGradle.deployer server: kserver, repo: 'libs-release-local'
      
      
      }
      
      stage('Gradle build') {
      buildInfo = rtGradle.run tasks: 'clean artifactoryPublish'
      
      }
      }
      

      Output:

       

      Started by user Andreas Mack
      Replayed #185
      Running in Durability level: MAX_SURVIVABILITY
      [Pipeline] Start of Pipeline
      [Pipeline] node
      Running on Jenkins in /data/jenkinshome/workspace/xxxx
      [Pipeline] {
      [Pipeline] getArtifactoryServer
      [Pipeline] newGradleBuild
      [Pipeline] checkout
      using credential 887228a7-6226-4e3b-9ba2-de269a6a3e98
       > /opt/rh/rh-git29/root/usr/libexec/git-core/git rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
       > /opt/rh/rh-git29/root/usr/libexec/git-core/git config remote.origin.url ssh://jenkins@xxxx/xxxx/xxx.git # timeout=10
      Fetching upstream changes from ssh://jenkins@xxxx/xxxx/xxx.git
       > /opt/rh/rh-git29/root/usr/libexec/git-core/git --version # timeout=10
      using GIT_SSH to set credentials 
       > /opt/rh/rh-git29/root/usr/libexec/git-core/git fetch --tags --progress ssh://jenkins@xxxxxx/xxxx/xxx.git +refs/heads/*:refs/remotes/origin/* # timeout=10
       > /opt/rh/rh-git29/root/usr/libexec/git-core/git rev-parse refs/remotes/origin/master^{commit} # timeout=10
       > /opt/rh/rh-git29/root/usr/libexec/git-core/git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
      Checking out Revision 43b71fbfdc268989a69490cb369826b50a65e1fe (refs/remotes/origin/master)
       > /opt/rh/rh-git29/root/usr/libexec/git-core/git config core.sparsecheckout # timeout=10
       > /opt/rh/rh-git29/root/usr/libexec/git-core/git checkout -f 43b71fbfdc268989a69490cb369826b50a65e1fe # timeout=10
      Commit message: "Remove single file backup of data"
       > /opt/rh/rh-git29/root/usr/libexec/git-core/git rev-list --no-walk 43b71fbfdc268989a69490cb369826b50a65e1fe # timeout=10
      [Pipeline] stage
      [Pipeline] { (Artifactory configuration)
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] stage
      [Pipeline] { (Gradle build)
      [Pipeline] newBuildInfo
      [Pipeline] ArtifactoryGradleBuild

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                eyalb Eyal Ben Moshe
                Reporter:
                andrm Andreas Mack
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: