-
Task
-
Resolution: Unresolved
-
Minor
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