为什么我的Jenkins Artifactory插件在下载后会提取“ .zip”而不提取“ .tgz”?

时间:2019-05-16 13:20:26

标签: download jenkins-pipeline artifactory artifact

我有一个Jenkins管道,该管道正在从工件中下载工件,然后应该提取它们。使用.zip可以正常工作,但不能使用.tgz

在工件文档中,有以下片段:

If true, the downloaded archive file is extracted after the download. The archived file itself is deleted locally. The supported archive types are: zip, tar; tar.gz; and tgz
13:49:50  Searching for artifacts...
13:49:56  Found 1 artifacts.
13:49:56  Beginning to resolve Build Info published dependencies.
13:49:56  Downloading 'https://artifactory.tools.xxx/my-app/1.0.4/my-app-1.0.4.tgz'...
13:49:56  Successfully downloaded 'https://artifactory.tools.xxx/my-app/1.0.4/my-app-1.0.4.tgz' to '/home/jenkins/workspace/deployment/my-app-1.0.4/my-app-1.0.4.tgz'
13:49:56  Finished resolving Build Info published dependencies.
[Pipeline] }
[Pipeline] {
[Pipeline] newArtifactoryServer
[Pipeline] newBuildInfo
[Pipeline] artifactoryDownload
[Pipeline] }
[Pipeline] {
13:49:57  Searching for artifacts...
13:49:57  Found 1 artifacts.
13:49:57  Beginning to resolve Build Info published dependencies.
13:49:57  Downloading 'https://artifactory.tools.xxx/my-app/1.0.4/my-app-1.0.4-cfManifest.zip'...
13:49:57  Successfully downloaded 'https://artifactory.tools.xxx/my-app/1.0.4/my-app-1.0.4-cfManifest.zip' to '/home/jenkins/workspace/deployment/my-app-1.0.4/my-app-1.0.4-cfManifest.zip'
13:49:57  Extracting Archive: /home/jenkins/workspace/deployment/my-app-1.0.4/my-app-1.0.4-cfManifest.zip
13:49:57  Finished extracting archive to /home/jenkins/workspace/deployment/my-app-1.0.4
13:49:57  Finished resolving Build Info published dependencies.

所以您怎么看,.tgz并没有被提取,但是.zip文件却被提取了(像预期的那样)。

0 个答案:

没有答案