Add an optional agent type to declarative Pipeline

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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'
          } 

       

            Assignee:
            Menna
            Reporter:
            Dima Kreisserman
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: