我想在Jenkins中拥有以下工作流程:
如何才能做到这一点?
小智 6
在 Jenkins Pipeline 方法中使用 as
script{
currentBuild.displayName = Build_Display (this will be overwrite the Job number)
currentBuild.description = Build_description
}
使用该Execute shell操作创建设置环境变量的 shell 脚本。例如:echo "BUILD_DESCRIPTION=example" >BUILD_DESCRIPTION.setting。
使用该Inject environment variables操作来执行 shell 脚本。
使用该Set build description操作将构建描述设置为由 shell 脚本设置的变量(例如${BUILD_DESCRIPTION})。