Re: Jenkins pipeline hangs when pod deleted

2020-11-19 Thread Miquel Catany
``` def worker_pipeline(){ try{ node("") { stage('Checkout SCM'){ git branch: '', credentialsId: 'xxx', url: 'https://github.com/x/.git' } container(''){ stage('Run Builds'){ "base_image": { sh 'gcloud buil

Re: Jenkins pipeline hangs when pod deleted

2020-11-19 Thread Miquel Catany
Cannot contact ci-worker-dind-jsvbh: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@13b5e548:JNLP4-connect connection from 10.251.13.10/10.251.13.10:48846": Remote call on JNLP4-connect connection from 10.251.13.10/10.251.13.10:48846 failed. The channel is closing down

Jenkins pipeline hangs when pod deleted

2020-11-18 Thread Miquel Catany
Hi, We are using GCP preemtible instances to deploy pod agents with Kubernetes Plugin. We want to be able to retry the pipeline if the node/pod is evicted, but our main problem is that when the pipeline is executing sh commands and the node/pod is evicted/deleted, the pipeline instead of fail