We are using kubernetes plugin for Jenkins to construct a special CI system. We want to achieve that:
For a given build job(named job_A), it will be built more than one time;
We hope this job job_A to be bound to a specific jenkins-slave(named pod_A), and the pod_A should only provide service for job_A.
After the job_A finished the build, pod_A should keep alive for the period of time time_T;
During the time_T, the pod_A should not build other jobs even through it is idle.
After another time interval which is less than time_T(the pod_A is still alive), we want to re-build the job_A, it will be send to pod_A and be build there.
Is there any way to achieve this?