Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-54542

allow the `agent` block to be ignored

XMLWordPrintable

      When using Jenkins X we have build packs with Jenkisnfiles using `agent` labels for pod templates and kubernetes plugins like this:

       

      e.g. our build packs use Jenkinsfiles like this:

      https://github.com/jenkins-x/draft-packs/blob/2.1/packs/maven/Jenkinsfile#L2 vs

       

      with 

      agent {   
        label "jenkins-maven"    
      } 

       

      for serverless jenkins we had to create a branch in the build pack like this:

      https://github.com/jenkins-x/draft-packs/blob/prow/packs/maven/Jenkinsfile#L2

       

      using 

          agent any 

       

      It would be awesome to have a CLI argument or environment variable that basically ignores the `agent` setting! Then we won't need to have a separate set of build packs for serverless

       

       

            Unassigned Unassigned
            jstrachan James Strachan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: