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

Unable to download latest artifact from snapshot repository

XMLWordPrintable

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

      Unable to download latest artifact from snapshot repository

       

      node('cdPipeline'){
      def server = Artifactory.server "artifactory_lower_prod_server"
      def downloadSpec = """{
      "files": [
      {

      "pattern": "snapshot-local/<PATH>/2018.01.0-SNAPSHOT/wibtp-zelle-2018.01.0-SNAPSHOT.tar",
      "target": "/var/tmp/kiran/",
      "flat": true

      }
      ]
      }
      }"""
      println(downloadSpec)
      server.download(downloadSpec)

      }

       

      This works well with release repositories, as the tar file pattern would be *tar

            eyalbe Eyal Ben Moshe
            kiran9456 Kiran Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: