我正在努力让JobDSL使用organizationFolder (种子作业构建得很好)和ghprb。“githubPullRequest”不存在于JobDSL的“组织框架/触发器”部分,但“ghprbTrigger”存在。
当我尝试最小配置时,有人告诉我:
the following options are required and must be specified: adminlist, whitelist,
orgslist, cron, triggerPhrase, onlyTriggerPhrase, permitAll,
autoCloseFailedPullRequests, displayBuildErrorsOnDownstreamBuilds,
commentFilePath, skipBuildPhrase, blackListCommitAuthor,
allowMembersOfWhitelistedOrgsAsAdmin, msgSuccess, msgFailure,
commitStatusContext, gitHubAuthId, buildDescTemplate, blackListLabels,
whiteListLabels, includedRegions, excludedRegions 我输入了一些虚拟值来缓解它们的字符串&布尔饥饿,最后得到了以下回报:
java.lang.ClassCastException: jenkins.branch.OrganizationFolder cannot be cast
to hudson.model.Job 和一个巨大的groovy/java错误转储。
我不知道最后一个错误意味着什么,也不知道如何追踪它。这很令人沮丧。任何帮助都将不胜感激。谢谢!
发布于 2021-08-02 15:25:37
事实上,答案是根本不使用ghprb。只要把你的整个github组织瞄准你的Jenkins网络钩子,你就完蛋了。
根据云蜜蜂支持文档,安装GitHub插件和GitHub分支源代码插件,然后正常设置org文件夹作业。然后,在您的Github,转到Settings,Webhooks,添加Web钩子,并添加您的web钩子。向其提供拉请求、推送和存储事件。
https://devops.stackexchange.com/questions/14431
复制相似问题