我一直有问题,让一个Jenkinsfile的工作,吉特布组织文件夹插件。当扫描存储库时,它表示在检查拉请求时无法找到Jenkinsfile文件。当它检查远程分支时,它可以找到Jenkinsfile文件。
这是输出:
Getting remote pull requests...
Checking pull request #57
(not from a trusted source)
Job name: PR-57
‘Jenkinsfile’ not found
Does not meet criteria
Checking pull
现在我正在使用jenkins管道构建my project。但是现在jenkins文件不在我的项目根路径中,所以我在jenkins配置仪表板中指定了${WORKSPACE}/dolphin-post/Jenkinsfile的路径。但是现在日志告诉我找不到Jenkinsfile,这是我的日志输出: SuccessScan Repository Log
Started
[Sat Sep 19 14:26:03 UTC 2020] Starting branch indexing...
14:26:03 Connecting to https://api.github.com with no cre
我正在使用jenkins dsl插件多分支管道作业(https://jenkinsci.github.io/job-dsl-plugin/#path/multibranchPipelineJob)来创建一个多分支管道。我已经创建了jenkinsfile,它处理每个分支的构建作业。我不知道github推式触发器是如何通过管道作为代码来启用的。我能找到的所有示例都是使用jenkins web UI或pollscm选项。有人可以帮助如何通过代码启用这一点。