jenkinsci / jenkinsci/docker-plugin
Dynamic provision of Docker Agent Templates
- Dominant language
- Java
- Stars
- 498
- Forks
- 324
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 2
Description
### What feature do you want to see added?
Would be great if this plugin could do something similar as what [Kubernetes plugin](https://plugins.jenkins.io/kubernetes/) does: it provides a high level pipeline step called `podTemplate`, which gives us the possibility to define the POD to be created dynamically via the pipeline.
This gives a lot of flexibility because we can define during pipeline execution which pod template do we want to use and also we can change their values before inform them to the podTemplate step.
My use case is: I have to spin up some docker containers which are tagged with our application version. Its cumbersome and massive to us to create a Docker Agent Template via JCasC everytime time a new Docker image is published.
We unfortunately can't make use of docker-workflow-plugin because we run our containers in Windows (without WSL2) and such plugin [hardcodes cmd.exe](https://github.com/jenkinsci/docker-workflow-plugin/blob/master/src/main/java/org/jenkinsci/plugins/docker/workflow/WithContainerStep.java#L199) when the base image is a windows. Our pipeline needs bash.exe, so it can run in Linux and Windows without any issues.
### Upstream changes
_No response_
### Are you interested in contributing this feature?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.