1

ここに初めて投稿するので、間違っていることをお許しください。

Jenkins で ZAProxy Plugin のインストールを実行しようとしています。

ウェブサイトhttps://wiki.jenkins-ci.org/display/JENKINS/ZAProxy+Pluginに従って値を挿入して、カスタム ツール プラグインをインストールしました。

その後、Jenkins ジョブで ZAProxy を実行します。

私のジョブ構成

ビルドを実行すると、次のエラーが表示されます。

Perform ZAProxy
Unpacking https://github.com/zaproxy/zaproxy/wiki/Downloads/ZAP_2.4.3_Core.tar.gz to /var/lib/jenkins/tools/com.cloudbees.jenkins.plugins.customtools.CustomTool/ZAProxy_2.4.3 on Jenkins
ERROR: java.io.IOException: Failed to install https://github.com/zaproxy/zaproxy/wiki/Downloads/ZAP_2.4.3_Core.tar.gz to /var/lib/jenkins/tools/com.cloudbees.jenkins.plugins.customtools.CustomTool/ZAProxy_2.4.3
    at hudson.FilePath.installIfNecessaryFrom(FilePath.java:832)
    at hudson.tools.ZipExtractionInstaller.performInstallation(ZipExtractionInstaller.java:79)
    at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68)
    at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:108)
    at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206)
    at com.cloudbees.jenkins.plugins.customtools.CustomTool.forNode(CustomTool.java:154)
    at com.cloudbees.jenkins.plugins.customtools.CustomTool.forNode(CustomTool.java:59)
    at fr.novia.zaproxyplugin.ZAProxy.retrieveZapHomeWithToolInstall(ZAProxy.java:486)
    at fr.novia.zaproxyplugin.ZAProxy.checkParams(ZAProxy.java:574)
    at fr.novia.zaproxyplugin.ZAProxy.startZAP(ZAProxy.java:613)
    at fr.novia.zaproxyplugin.ZAProxyBuilder.perform(ZAProxyBuilder.java:159)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
    at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.build(MavenModuleSetBuild.java:919)
    at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:870)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
    at hudson.model.Run.execute(Run.java:1738)
    at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:410)
Caused by: java.io.IOException: Failed to unpack https://github.com/zaproxy/zaproxy/wiki/Downloads/ZAP_2.4.3_Core.tar.gz (26 bytes read of total -1)
    at hudson.FilePath.installIfNecessaryFrom(FilePath.java:826)
    ... 19 more
Caused by: java.io.IOException: Failed to extract input stream
    at hudson.FilePath.readFromTar(FilePath.java:2300)
    at hudson.FilePath.access$400(FilePath.java:190)
    at hudson.FilePath$10.invoke(FilePath.java:720)
    at hudson.FilePath$10.invoke(FilePath.java:718)
    at hudson.FilePath.act(FilePath.java:990)
    at hudson.FilePath.act(FilePath.java:968)
    at hudson.FilePath.untarFrom(FilePath.java:718)
    at hudson.FilePath.installIfNecessaryFrom(FilePath.java:824)
    ... 19 more
Caused by: java.io.IOException: incorrect header check
    at com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:112)
    at org.apache.commons.compress.utils.IOUtils.readFully(IOUtils.java:160)
    at org.apache.commons.compress.utils.IOUtils.readFully(IOUtils.java:134)
    at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.readRecord(TarArchiveInputStream.java:419)
    at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getRecord(TarArchiveInputStream.java:388)
    at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getNextTarEntry(TarArchiveInputStream.java:269)
    at hudson.FilePath.readFromTar(FilePath.java:2278)
    ... 26 more

Build step 'Execute ZAProxy' marked build as failure
[DependencyCheck] Collecting Dependency-Check analysis files...
[DependencyCheck] Finding all files that match the pattern dependency-check- report.xml
[DependencyCheck] Parsing 1 file in /var/lib/jenkins/jobs/<project name>_continuous/workspace
[DependencyCheck] Successfully parsed file /var/lib/jenkins/jobs/<project name>_continuous/workspace/dependency-check-report.xml of module <company name> HELP with 0 unique warnings and 0 duplicates.
[DependencyCheck] Computing warning deltas based on reference build #75
[DependencyCheck] Ignore new warnings since this is the first valid build
[DependencyCheck] Plug-in Result: Success - no threshold has been exceeded
Finished: FAILURE

このエラーに関する情報を見つけることができませんでしたが、将来このプラグインを使用する必要がある他の新規参入者に役立つと確信しています. 私を助けてください。それは私の会社のジェンキンスなので、内部情報を隠蔽する必要があります。赤い色で上書きします。

4

1 に答える 1

0

そのURLはどこから入手しましたか?

ZAP 2.4.3 コアの正しいものは次のとおりです: https://github.com/zaproxy/zaproxy/releases/download/2.4.3/ZAP_2.4.3_Core.tar.gz

于 2015-12-22T14:15:24.283 に答える