Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-61239

wrap KubectlBuildWrapper .kube3176757836743155678config (No such file or directory)

    Details

    • Similar Issues:
    • Released As:
      kubernetes 1.26.2

      Description

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

      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

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

            https://github.com/jenkinsci/kubernetes-plugin/pull/682#discussion_r442852498 means KubectlBuildWrapper is completely broken AFAICT.

            Show
            jglick Jesse Glick added a comment - https://github.com/jenkinsci/kubernetes-plugin/pull/682#discussion_r442852498 means KubectlBuildWrapper is completely broken AFAICT.

              People

              • Assignee:
                vlatombe Vincent Latombe
                Reporter:
                jonaz Jonas Falck
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: