有没有一种方法可以在自由式作业中验证字符串参数以验证字符串参数
正如标题所说,我需要一个占位符文本,以在詹金斯(Jenkins)的自由式作业中“验证字符串参数”。我提到的是如下。
但是您在图像中看到的是一个活动选择反应性参数”,它只能将文本放入过滤器部分。詹金斯(Jenkins)都应将其视为一个空变量。
as the title says I need a placeholder text for "Validating String Parameter" in a Free-Style job in Jenkins. What I'm mentioning looks as follows.
But what you see in the image is an Active Choices Reactive Reference Parameter" and it lets you only put the text into the Filter section. I need a text in the parameter itself and if there isn't any entry Jenkins should consider it as an empty variable. Is that possible if yes how? Thank you in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您好,有一种方法可以通过 Active Choices Reactive Reference 参数。选择类型将为 HTML 格式。
我使用的 jenkinsfile 在管道块之外有一个参数块,并且它是声明性的。我不确定这是否适用于脚本。
注意:名称应该是“value”,类是可选的,jenkins-input 会让它看起来像一个字符串参数。占位符是您想要放置文本的位置。
Hello there is a way through the Active Choices Reactive Reference Parameter. The choice type will be Formatted HTML.
The jenkinsfile I use has a parameters block outside of the pipeline block and it is declarative. I'm not sure if this will work with scripted.
Note: the name should be "value", the class is optional the jenkins-input will make it look like a String parameter. Placeholder is where you want to have the text.