-
Type:
New Feature
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: pipeline-model-definition-plugin
-
None
please enable a feature of optional selection of the agent type. So the same job could run according to the selected type as a parameter, something like that:
when {
    expression { params.AGENT_TYPE == 'kubernetes' }
  }
 agent {
    kubernetes {defaultContainer 'my_k8s_template'}
  }
 when {
    expression { params.AGENT_TYPE == 'label' }
  }
  agent {
    label 'my_label'
  }
Â