File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
src/com/cloudogu/gitopsbuildlib/docker Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
## [ Unreleased]
9
9
10
10
### Added
11
+ - Add additional docker runs args support
11
12
- Add welcome message and print configs at application start
12
13
13
14
### Changed
Original file line number Diff line number Diff line change @@ -383,6 +383,10 @@ def gitopsConfig = [
383
383
]
384
384
```
385
385
386
+ If you should need to add addition arguments to ` docker run ` you can do so globally by setting
387
+ ` ADDITIONAL_DOCKER_RUN_ARGS ` as global properties at ` https://your-jenkins/manage/configure#global-properties ` .
388
+ This can be used to globally fix certain bugs in Jenkins agents or their docker config.
389
+
386
390
## Stages
387
391
The GitOps-build-lib supports builds on multiple stages. A stage is defined by a name and contains a namespace (used to
388
392
generate the resources) and a deployment-flag:
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ class DockerWrapper {
34
34
script. docker. image(image). inside(
35
35
// Allow accessing WORKSPACE even when we are in a child dir (using "dir() {}")
36
36
" ${ script.pwd().equals(script.env.WORKSPACE) ? '' : "-v ${script.env.WORKSPACE}:${script.env.WORKSPACE} "} " +
37
+ " ${ script.env.ADDITIONAL_DOCKER_RUN_ARGS ? " ${script.env.ADDITIONAL_DOCKER_RUN_ARGS} " : ''} " +
37
38
// Avoid: "ERROR: The container started but didn't run the expected command"
38
39
' --entrypoint=""'
39
40
) {
You can’t perform that action at this time.
0 commit comments