1. Look at jenkinsfile
2. Check the error message and the authentication fails
I can see that the authentication failed, but my Jenkins machine was successful in executing the kubectl command
[root@devops ~]# kubectl get pod
NAME READY STATUS RESTARTS AGE
nexus3-7b7598945f-njgpn 1/1 Running 1 6d6h
3. Modified
My authorization file is validated by environment variables, which are placed in /etc/profile, and /etc/profile is only loaded when the user logs in, Jenkins uses Non-login when running the command
Similar Posts:
- Jenkins – mvn: command not found
- [Solved] JSCH cannot run JAVA bash:java:Command not found.
- How does MAC uninstall Jenkins
- [Solved] Jenkins deploy task error: Host key verification failed
- [Solved] jenkins Build python Program Error: ModuleNotFoundError: No module named ‘htmltestreport’
- CentOS Error -bash:systemctl:command not found
- Mac ADB prompts command not found
- How to install “CONDA command not found” in MAC Anaconda
- Linux cron has no effect after executing the script, and the log reports an error orphan (no passwd entry)
- [Solved] Access denied for user ‘ODBC’@’localhost’ (using password: NO)