Pod still released after "Pod Retention" set to "On Failure" for Kubernetes Plugin

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Pod still released after "Pod Retention" set to "On Failure" for Kubernetes Plugin

Evan-3

Jenkins 2.138.2

Kubernetes Plugin 1.13.2

 

When using kubernetes plugin to dynamically provision Jenkins slave, the needs now is to reserve workspace of Jenkins slave when the job failed, "Pod Retention" seems to be useful.

 

When "Pod Retention" is set to "Always", after job finished, the pod is reserved;


But when "Pod Retention" set to "On Failure", after job fails, the pod still released.


Is it a bug of plugin or my setting problem?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/334d2195-3ace-4ed0-81ba-2ae77958d3d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Released.png (16K) Download Attachment
Reseverd.png (17K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Pod still released after "Pod Retention" set to "On Failure" for Kubernetes Plugin

Carlos Sanchez
When you say "pod still released" what do you mean? the retention means the pod will not be deleted in k8s but not used by jenkins

On Fri, Nov 2, 2018 at 9:58 AM Evan <[hidden email]> wrote:

Jenkins 2.138.2

Kubernetes Plugin 1.13.2

 

When using kubernetes plugin to dynamically provision Jenkins slave, the needs now is to reserve workspace of Jenkins slave when the job failed, "Pod Retention" seems to be useful.

 

When "Pod Retention" is set to "Always", after job finished, the pod is reserved;


But when "Pod Retention" set to "On Failure", after job fails, the pod still released.


Is it a bug of plugin or my setting problem?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/334d2195-3ace-4ed0-81ba-2ae77958d3d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CALHFn6NR%3DrqeZ%2BAUEHv5V3hgNShja7QrW7CSef6aeXtxGPJR3Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Pod still released after "Pod Retention" set to "On Failure" for Kubernetes Plugin

Evan-3
The pod is not used by jenkins literally, but it's also deleted in k8s, this is somewhat confusing.

在 2018年11月2日星期五 UTC+8下午5:32:08,Carlos Sanchez写道:
When you say "pod still released" what do you mean? the retention means the pod will not be deleted in k8s but not used by jenkins

On Fri, Nov 2, 2018 at 9:58 AM Evan <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="ELyaT-uIDAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">xzy9...@...> wrote:

Jenkins 2.138.2

Kubernetes Plugin 1.13.2

 

When using kubernetes plugin to dynamically provision Jenkins slave, the needs now is to reserve workspace of Jenkins slave when the job failed, "Pod Retention" seems to be useful.

 

When "Pod Retention" is set to "Always", after job finished, the pod is reserved;


But when "Pod Retention" set to "On Failure", after job fails, the pod still released.


Is it a bug of plugin or my setting problem?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="ELyaT-uIDAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/334d2195-3ace-4ed0-81ba-2ae77958d3d7%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/334d2195-3ace-4ed0-81ba-2ae77958d3d7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/334d2195-3ace-4ed0-81ba-2ae77958d3d7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/334d2195-3ace-4ed0-81ba-2ae77958d3d7%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d295bc6a-7378-4bb6-a408-ace1a7a9cb71%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.