docker-workflow-plugin
docker-workflow-plugin copied to clipboard
`docker stop --time` increased to 5 seconds
When my company's (Windows) build infrastructure is under heavy load, Jenkins pipelines start failing because Docker containers cannot be stopped in 1 second:
java.io.IOException: Failed to kill container '84ed22ea737f82f2e0a51e813cc9b807c6a48f7154ebffc360ca365fd27ed248'.
12:04:11 at org.jenkinsci.plugins.docker.workflow.client.DockerClient.stop(DockerClient.java:184)
5 seconds should be a more reasonable timeout.
Alternatively, the timeout should be exposed as a config option.
Testing done
No testing was done.
### Submitter checklist
- [x] Make sure you are opening from a **topic/feature/bugfix branch** (right side) and not your main branch!
- [x] Ensure that the pull request title represents the desired changelog entry
- [x] Please describe what you did
- [ ] Link to relevant issues in GitHub or Jira
- [ ] Link to relevant pull requests, esp. upstream and downstream changes
- [ ] Ensure you have provided tests - that demonstrates feature works or fixes the issue