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

When using the same file with filespec it will upload for the same target


    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 2.15.0
    • Fix Version/s: 2.15.1
    • Component/s: None
    • Labels:


      The pipeline example:

      node {
          git url: 'https://github.com/jfrogdev/project-examples.git'
          // Obtain an Artifactory server instance, defined in Jenkins --> Manage:
          def server = Artifactory.server ('artifactory')
        def uploadSpec = """{
      "files": [
            "pattern": "jenkins-examples/pipeline-examples/resources/ArtifactoryPipeline.zip",
            "target": "generic-local",
            "props": "p1=v1;p2=v2"
            "pattern": "jenkins-examples/pipeline-examples/resources/ArtifactoryPipeline.zip",
            "target": "libs-snapshot-local"
          // Upload to Artifactory.
          def buildInfo = server.upload spec: uploadSpec
          // Publish the build to Artifactory
          server.publishBuildInfo buildInfo

      The build log :

      // Some comments here
       > git rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
       > git config remote.origin.url https://github.com/jfrogdev/project-examples.git # timeout=10
      Fetching upstream changes from https://github.com/jfrogdev/project-examples.git
       > git --version # timeout=10
       > git fetch --tags --progress https://github.com/jfrogdev/project-examples.git +refs/heads/*:refs/remotes/origin/*
       > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
       > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
      Checking out Revision 6d56a7d7ba1e5dcbd8370551235df1b1108e18a9 (refs/remotes/origin/master)
      Commit message: "Move pipeline-examples and job-dsl-examples to jenkins-examples"
       > git config core.sparsecheckout # timeout=10
       > git checkout -f 6d56a7d7ba1e5dcbd8370551235df1b1108e18a9
       > git branch -a -v --no-abbrev # timeout=10
       > git branch -D master # timeout=10
       > git checkout -b master 6d56a7d7ba1e5dcbd8370551235df1b1108e18a9
       > git rev-list 6d56a7d7ba1e5dcbd8370551235df1b1108e18a9 # timeout=10
      [Pipeline] getArtifactoryServer
      [Pipeline] artifactoryUpload
      For pattern: jenkins-examples/pipeline-examples/resources/ArtifactoryPipeline.zip 1 artifacts were found.
      For pattern: jenkins-examples/pipeline-examples/resources/ArtifactoryPipeline.zip 1 artifacts were found.
      Deploying artifact: https://batelt.jfrog.io/batelt/generic-local/ArtifactoryPipeline.zip
      [Pipeline] publishBuildInfo
      Deploying build info to: https://batelt.jfrog.io/batelt/api/build
      Deploying build descriptor to: https://batelt.jfrog.io/batelt/api/build
      Build successfully deployed. Browse it in Artifactory under https://batelt.jfrog.io/batelt/webapp/builds/pipe/123
      [Pipeline] }
      [Pipeline] // node
      [Pipeline] End of Pipeline
      Finished: SUCCESS


          Issue Links



              • Assignee:
                barb Bar Belity
                batelt Batel Tova
              • Votes:
                0 Vote for this issue
                2 Start watching this issue


                • Created: