[JIRA] (JENKINS-61239) wrap KubectlBuildWrapper .kube3176757836743155678config (No such file or directory)

9 views
Skip to first unread message

jonas.falck@gmail.com (JIRA)

unread,
Feb 26, 2020, 9:40:07 AM2/26/20
to jenkinsc...@googlegroups.com
Jonas Falck created an issue
 
Jenkins / Bug JENKINS-61239
wrap KubectlBuildWrapper .kube3176757836743155678config (No such file or directory)
Issue Type: Bug Bug
Assignee: Unassigned
Components: kubernetes-plugin
Created: 2020-02-26 14:39
Environment: jenkins version 2.204.2 plugin version 1.24.1
Priority: Major Major
Reporter: Jonas Falck

We are using the following to use kubectl to deploy stuff in Jenkinsfile.

wrap([$class: 'KubectlBuildWrapper', serverUrl: cluster, credentialsId: credId ]) {

After upgrade from 1.22.5 to 1.24.1 this stopped working with error:

java.io.FileNotFoundException: /home/jenkins/agent/workspace/app1/deploy-dev/.kube3176757836743155678config (No such file or directory)
	at java.io.FileOutputStream.open0(Native Method)
	at java.io.FileOutputStream.open(FileOutputStream.java:270)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:101)
	at org.csanchez.jenkins.plugins.kubernetes.KubectlBuildWrapper.setUp(KubectlBuildWrapper.java:96)
	at org.jenkinsci.plugins.workflow.steps.CoreWrapperStep$Execution2.doStart(CoreWrapperStep.java:97)
	at org.jenkinsci.plugins.workflow.steps.GeneralNonBlockingStepExecution.lambda$run$0(GeneralNonBlockingStepExecution.java:77)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Finished: FAILURE

Downgrade to 1.22.5 and it works again.

Using jenkins version* 2.204.2*

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

jonas.falck@gmail.com (JIRA)

unread,
Feb 26, 2020, 9:42:06 AM2/26/20
to jenkinsc...@googlegroups.com
Jonas Falck updated an issue
Change By: Jonas Falck
We are using the following to use kubectl to deploy stuff in Jenkinsfile for 2 years .
{code}

wrap([$class: 'KubectlBuildWrapper', serverUrl: cluster, credentialsId: credId ]) {
{code}

After upgrade from *1.22.5*  to *1.24.1* this stopped working with error:
{code}

java.io.FileNotFoundException: /home/jenkins/agent/workspace/app1/deploy-dev/.kube3176757836743155678config (No such file or directory)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:101)
at org.csanchez.jenkins.plugins.kubernetes.KubectlBuildWrapper.setUp(KubectlBuildWrapper.java:96)
at org.jenkinsci.plugins.workflow.steps.CoreWrapperStep$Execution2.doStart(CoreWrapperStep.java:97)
at org.jenkinsci.plugins.workflow.steps.GeneralNonBlockingStepExecution.lambda$run$0(GeneralNonBlockingStepExecution.java:77)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Finished: FAILURE
{code}

Downgrade to *1.22.5* and it works again.

Using jenkins version* 2.204.2*

jonas.falck@gmail.com (JIRA)

unread,
Feb 26, 2020, 9:54:06 AM2/26/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages