目录

【错误收集】

【错误分析】

【解决办法】

【运行结果】


【错误收集】

Started by user 
java.io.IOException: Directory
    at PluginClassLoader for git//jenkins.plugins.git.GitSCMFile.lambda$content$2(GitSCMFile.java:164)
    at PluginClassLoader for git//jenkins.plugins.git.GitSCMFileSystem.lambda$invoke$e8567d7e$1(GitSCMFileSystem.java:185)
    at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:28)
    at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.withRepository(CliGitAPIImpl.java:83)
    at PluginClassLoader for git//jenkins.plugins.git.GitSCMFileSystem.invoke(GitSCMFileSystem.java:185)
    at PluginClassLoader for git//jenkins.plugins.git.GitSCMFile.content(GitSCMFile.java:151)
    at PluginClassLoader for scm-api//jenkins.scm.api.SCMFile.contentAsString(SCMFile.java:335)
    at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:123)
    at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:72)
    at PluginClassLoader for workflow-job//org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:317)
    at hudson.model.ResourceController.execute(ResourceController.java:101)
    at hudson.model.Executor.run(Executor.java:454)
[withMaven] downstreamPipelineTriggerRunListener - Failure to introspect build steps: java.io.IOException: pipeline流水线任务 #1 did not yet start
[withMaven] downstreamPipelineTriggerRunListener - Failure to introspect build steps: java.io.IOException: pipeline流水线任务 #1 did not yet start
Finished: FAILURE

【错误分析】

[withMaven] downstreamPipelineTriggerRunListener - Failure to introspect build steps: java.io.IOException: pipeline流水线任务 #1 did not yet start

io异常,运行的时候,应该没有找到要执行的文件。无法加载,执行任务

【解决办法】

拉去的项目根目录里面创建一个Jenkinsfile文件,而不是一个Jenkinsfile文件夹。如下

【运行结果】

执行任务成功

Logo

Agent 垂直技术社区,欢迎活跃、内容共建。

更多推荐