-
Bug
-
Resolution: Unresolved
-
Minor
-
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.