简体   繁体   English

单击构建时,有没有办法删除每个 Jenkins 作业名称中的“项目”?

[英]Is there a way to remove "Project" in every Jenkins job names when clicking on Build?

When clicking on a certain Jenkins job, the title of the job starts with "Project".单击某个 Jenkins 作业时,该作业的标题以“项目”开头。 Suppose I have a job named "Demo Job", and clicking on the job itself will result in displaying "Project Demo Job".假设我有一个名为“Demo Job”的工作,单击该工作本身将导致显示“Project Demo Job”。 Is that a standard Jenkins way of assigning name to a job or it can be configured?这是为作业分配名称的标准 Jenkins 方式还是可以配置?

Yes, it depends on the job that you configure.是的,这取决于您配置的作业。
Example:例子:
If you create a freestyle project, then it would display Project <Your jobname>如果您创建一个自由式项目,那么它将显示Project <Your jobname>
If you create a pipeline project, then it would display Pipeline <Your jobname>如果您创建一个管道项目,那么它将显示Pipeline <Your jobname>
This would not impact anything and also when you access your jobname with ${env.JOB_NAME} , then it would return you your jobname without appending anything.这不会影响任何事情,而且当您使用${env.JOB_NAME}访问您的职位名称时,它会返回您的职位名称而不附加任何内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM