Unable to set pod retention for Jenkins Kubernetes plugin Groovy script.
19 views
Skip to first unread message
santhosh kumar
unread,
Apr 16, 2020, 3:48:00 AM4/16/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Users
Trying to configure pod retention value for Jenkins Kubernetes plugin using groovy script. kubernetes.setPodRetention(org.csanchez.jenkins.plugins.kubernetes.pod.retention.Podretention.Never()) method is failing to configure with below error :
Invalid value provided in main configuration No signature of method: static org.csanchez.jenkins.plugins.kubernetes.pod.retention.PodRetention.Never() is applicable for argument types: () values: []
tried configuring by using different values for the method: kubernetes.setPodRetention(org.csanchez.jenkins.plugins.kubernetes.pod.retention.Never)
Error using the above value as well.
Please some one help me on this as i was struck with this from quite a long.