jenkinsci / jenkinsci/docker-plugin
Passing job parameters into Docker build arguments does not work
- Dominant language
- Java
- Stars
- 498
- Forks
- 324
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 2
Description
### Jenkins and plugins versions report
Environment
```text
Paste the output here
```
### What Operating System are you using (both controller, and any agents involved in the problem)?
Debian 11, jenkins run in official docker image `jenkins/jenkins`.
### Reproduction steps
1. Create parametrized job and set up some parameter, NAME=VALUE for example.
2. Configure Docker build/publish stage in build with build args with content: `--build-arg NAME=${NAME}
3. Run job
### Expected Results
Build args passed to docker build command in form `--build-arg NAME=VALUE`
### Actual Results
Build args passed to docker build command in form `--build-arg NAME=${NAME}`, which no sense.
### Anything else?
With this bug, the Docker plugin is almost useless for building images parameterized with job arguments.
Contributor guide
Assessment
This issue has not been assessed yet.