You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

在哪里可以找到Jenkins流水线input()方法的源代码及对应访问链接?

Jenkins input() 方法源码定位说明

你在Jenkins核心源码仓库和Groovy文档中找不到该方法实现的原因是:input() 不属于Jenkins核心组件,也不是Groovy原生语法,而是Pipeline Input Step插件提供的专属Pipeline步骤能力,对应代码均在该插件的源码包中:

  • 核心业务实现类路径为 org.jenkinsci.plugins.workflow.support.steps.input.InputStep,你示例中用到的message、submitter、submitterParameter、parameter等参数的解析逻辑、交互流程逻辑、返回值封装逻辑全部在该类中定义。
  • 步骤名绑定逻辑由同包下的 InputStep.DescriptorImpl 类实现,该类完成了后端实现代码和Pipeline语法中input调用名的映射注册。
    你需要检索Pipeline Input Step插件的源码,按上述类路径即可快速定位到对应实现。

内容的提问来源于stack exchange,提问作者Sohail Si

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.09.29 10:15:03