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

Unable to download artifacts

XMLWordPrintable

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

      I am trying to do a simple download of a tar.gz  from a repository in our artifactory.

      I am using the following in our Jenkinsfile to test the spec.

      def downloadSpec = """{
      "files": [
      {
      "pattern": "${ARTIFACTORY_URI}/${ARTIFACTORY_PKGS_REPO}/${ARTIFACTORY_APPCENTER_HOME}/charts/${APPCENTER_VERSION}/appcenter-${APPCENTER_VERSION}.tgz",
      "target": "${OUTPUT_DIR}/",
      "flat": true
      }
      ]
      }"""
      server.download(downloadSpec)

      I do not see any error on running the Jenkinsfile but nothing gets downloaded in the target dir.

      The output even says "
      Downloading artifacts using pattern: "generated_url"
      "

      When I click on generated_url the tar.gz gets downloaded. 

      I don't think I am missing anything. Let me know if I am doing something wrong here.

       

       

            eyalbe Eyal Ben Moshe
            revanth109 revanth alampally
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: