問題タブ [jfrog-mission-control]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
artifactory - ArtifactoryPublish でエラーが発生する: gradle タスクを実行できませんでした
jenkins パイプラインを実行し、artifactoryPublish で gradle を実行すると、このエラー メッセージとスタック トレースが表示されます。次の構成を使用します。
1 jenkins パイプライン ジョブ (バージョン 2.19 jenkins および artifactory プラグイン 2.7.2) 2 スクリプト:
次のことを行います: パイプライン (jenkinsfile)
- ビルド、グレード:
buildscript { リポジトリ { jcenter() } 依存関係 { classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.4.5" classpath files(bndURI, bndRepoURI) }
}
- ジェンキンスでの出力:
[パイプライン] getArtifactoryServer [パイプライン] newGradleBuild [パイプライン] ArtifactoryGradleBuild [efpi-core] $ /var/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/Gradle_3.1/bin/gradle clean artifactoryPublish -b build.gradle エラー: できませんでしたgradle タスクを実行しないでください。[パイプライン] } [パイプライン] // ノード [パイプライン] パイプラインの終わり
org.jfrog.hudson.pipeline.steps.ArtifactoryGradleBuild$Execution.exe(ArtifactoryGradleBuild.java:192) で hudson.model.Run$RunnerAbortedException org.jfrog.hudson.pipeline.steps.ArtifactoryGradleBuild$Execution.run(ArtifactoryGradleBuild.java) で:124) org.jfrog.hudson.pipeline.steps.ArtifactoryGradleBuild$Execution.run(ArtifactoryGradleBuild.java:95) で org.jenkinsci.plugins.workflow.steps.AbstractSynchronousStepExecution.start(AbstractSynchronousStepExecution.java:40) で org. jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:184) org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:126) at org.jenkinsci.plugins.workflow.cps. org.jfrog.hudson.pipeline.types の CpsScript.invokeMethod(CpsScript.java:120)。org.jfrog.hudson.pipeline.types の GradleBuild.run(GradleBuild.java:66)。org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) の GradleBuild$run$1.call(不明なソース) org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java: 113) org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:151) で org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:21) で org.jenkinsci.plugins. scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:115) at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:149) at org.kohsuke.groovy.sandbox.impl.Checker .checkedCall(Checker.java:146) で com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:16) で WorkflowScript.run(WorkflowScript:14) でgroovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at org.kohsuke.groovy.sandbox.impl.Checker$1 .call(Checker.java:151) at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:21) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:115) ) org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:149) で org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:146) で com.cloudbees.groovy .cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:16) で WorkflowScript.run(WorkflowScript:14) でgroovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at org.kohsuke.groovy.sandbox.impl.Checker$1 .call(Checker.java:151) at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:21) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:115) ) org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:149) で org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:146) で com.cloudbees.groovy .cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:16) で WorkflowScript.run(WorkflowScript:14) でruntime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:151) at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor) .java:21) org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:115) で org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:149) でorg.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:146) で com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:16) で WorkflowScript.run(WorkflowScript:14) ) でruntime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:151) at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor) .java:21) org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:115) で org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:149) でorg.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:146) で com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:16) で WorkflowScript.run(WorkflowScript:14) ) でorg.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:115) の onMethodCall(GroovyInterceptor.java:21) org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java) :149) org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:146) で com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:16) で WorkflowScript.run( WorkflowScript:14) でorg.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:115) の onMethodCall(GroovyInterceptor.java:21) org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java) :149) org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:146) で com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:16) で WorkflowScript.run( WorkflowScript:14) で(WorkflowScript:14) で実行(WorkflowScript:14) で実行 cps.transform(ネイティブ メソッド) com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:48) com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:109) で.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:82) at sun.reflect.GeneratedMethodAccessor186.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java .lang.reflect.Method.invoke(Method.java:498) com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72) で com.cloudbees.groovy.cps.impl.CollectionLiteralBlock $ContinuationImpl.dispatch(CollectionLiteralBlock.java:55) com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.item(CollectionLiteralBlock.java:45) at sun.reflect.GeneratedMethodAccessor263.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java: 498) com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72) で com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21) で com.cloudbees org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001( org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:30) org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108) で org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:30) で.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:164) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:324) at org.jenkinsci.plugins.workflow.cps org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:236) の .CpsThreadGroup.access$100(CpsThreadGroup.java:78) org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call( CpsThreadGroup.java:224) org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:47) で java.util.concurrent.FutureTask.run(FutureTask.java:266) で hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112) で jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) で java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) で java.util .concurrent.FutureTask.run(FutureTask.java:266) で java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) で java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) でjava.lang.Thread.run(Thread.java:745) 終了: FAILUREjava:266) で java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) で java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) で java.lang.Thread.run(Thread .java:745) 終了: 失敗java:266) で java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) で java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) で java.lang.Thread.run(Thread .java:745) 終了: 失敗