这是我试图将一些文件夹内容从 jfrog 下载到 jenkins 管道脚本中的代码片段
stage ('Pull from BAMS Artifactory')
{
def server = Artifactory.newServer url: u_rl, credentialsId: creds
def downloadSpec = """{
"files": [
{
"pattern": "default.npm.global/transfer-pricing/ooxp-common-lib/*.**",
"target": "default.npm.global/"
}
]
}"""
server.download(downloadSpec)
}
The fallowing are the files in that folder ooxp-common-lib
../
ooxp-common-lib-1.0.0.tgz 30-Oct-2018 22:33 14.24 KB
ooxp-common-lib-1.0.0.tgz.md5 30-Oct-2018 22:33 32 bytes
ooxp-common-lib-1.0.0.tgz.sha1 30-Oct-2018 22:33 40 bytes
.tgz 文件是如何下载的,而 .tgz.md5 和 .tgz.sh1 文件没有下载到工作区 ,我尝试了很多方法,但无法下载这些扩展文件。有人可以请尽快帮助我。