Hi,
I'm starting to migrate some projects to the declarative pipeline model. In
particular, we want to build on an agent designated by the "docker" label
(which runs a Docker daemon) and then, I want to build inside a Docker
container described by my Dockerfile.
Doing this:
pipeline {
agent {
label "docker"
dockerfile true
}
}
This generates an error:
Only one agent type is allowed per agent section
Now, what should be the best approach to solve this, I think, common
pattern?
I will try using agent+label, and then using docker+build+inside in steps,
but would not it more elegant to allow to use both a label and a Dockerfile
in the agent declaration?
Thanks you for any feedback,
Damien.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/c3f4d258-9b63-4744-9b50-47da546bcdb0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.