Started by user paxAutoTest org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: 14: Invalid parameter "failFast", did you mean "unit"? @ line 14, column 50. eout(time: 48, unit: 'HOURS', failFast: ^ WorkflowScript: 15: Invalid step "parallel" used - not allowed in this context - The parallel step can only be used as the only top-level step in a stages step block @ line 15, column 21. parallel { ^ WorkflowScript: 16: Invalid step "stage" used - not allowed in this context - The stage step cannot be used in Declarative Pipelines @ line 16, column 25. stage('version-A80S-1240249707') { ^ WorkflowScript: 30: Invalid step "stage" used - not allowed in this context - The stage step cannot be used in Declarative Pipelines @ line 30, column 25. stage('version-A80S-1240249703') { ^ 4 errors at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:309) at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1107) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:624) at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:602) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:579) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:323) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:293) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox$Scope.parse(GroovySandbox.java:163) at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:190) at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:175) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:568) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:518) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:336) at hudson.model.ResourceController.execute(ResourceController.java:101) at hudson.model.Executor.run(Executor.java:442) Finished: FAILURE
时间: 2024-04-13 20:27:55 浏览: 190
Flutter 出现Could not download groovy-all.jar (org.codehaus.groovy:groovy-all:2.4.15)
根据错误信息,可以看到有几个问题需要解决:
1. 关于 "eout" 函数的问题:错误提示指出在第14行的代码中,参数 "failFast" 是无效的,它建议使用参数 "unit"。你需要检查代码中的 "eout" 函数,并确保正确使用了参数。
2. 关于 "parallel" 步骤的问题:错误提示指出在第15行的代码中,"parallel" 步骤不能在当前上下文中使用,它只能作为 stages 步骤块中唯一的顶级步骤。你需要确认代码中是否正确使用了 "parallel" 步骤。
3. 关于 "stage" 步骤的问题:错误提示指出在第16行和第30行的代码中,"stage" 步骤不能在当前上下文中使用,因为你正在使用的是声明式管道语法(Declarative Pipelines)。你需要检查代码并确保正确使用了 "stage" 步骤。
以上是根据错误信息推测出来的问题和解决方法,具体还需要根据你的实际代码进行调整和确认。如果问题仍然存在,建议提供更多上下文信息,以便我能够更准确地帮助你解决问题。
阅读全文