title: kubectl command running in VM but not running in jenkins pipeline
body: <p>I have installed jenkins on the ubuntu server. I have copied the config file to my home .kube/config folder. When I am running &quot;kubectl get pods&quot; command directly in the VM, it's running fine. But when I ran it in the jenkins pipeline the command is failing. I have tried it with providing --kubeconfig $PATHFORKUBECONFIG file.</p>
  <p>Can anyone please help me with my query?</p>