Allow users to choose a different Jenkins agent for pipeline stage
Created by: LinuxSuRen
What would you like to be added: In some use cases, there're multiple languages in one single project or build serval different projects in one pipeline. But Kubesphere 3.0 can only set a global Jenkins agent for a pipeline.
A simple solution is adding support to set different Jenkins agents for each pipeline stage. Basically, they are the same between the global agent setting and the stage scoped agent setting.
Why is this needed: I find out there's another feature request which is https://github.com/kubesphere/kubesphere/issues/2862
Enhancement For now, we need to type the label of the target Jenkins node (or agent). But we can only get all the supported labels by visiting Jenkins UI. In order to make it be easier for all users especially for someone who is new to Jenkins. I'd like offer my second proposal below:
/area devops