Project

General

Profile

Bug #3660

TTCN3 Jenkins jobs leave Docker containers running when stopped

Added by osmith 30 days ago. Updated 30 days ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
-
Start date:
10/17/2018
Due date:
% Done:

0%

Spec Reference:
Tags:

Description

The jenkins.sh scripts start multiple containers and stops them at the end of the script. When aborting a job with the web interface, the script gets killed and can not do the clean up part. Jenkins kills all child processes, but not the containers as they get spawned by the docker daemon.

Ideas to resolve this:
  • open a bug report at Jenkins to not kill processes with -9 in a bug report, then wait for a stable release with the fix, then implement clean up on receiving SIGABRT in jenkins.sh
  • try out the PostBuildScript Plugin (or Post build task, that should work for sure), see if they allow executing code on abort of the job
  • try to attach the environment variable that jenkins is using to decide which processes will be killed (see link above) to the processes in the Docker containers

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)