Today, the development environment rebuilt a jenkins, and encountered a failure to execute the remote shell script
Others
2022-05-16 23:57:58
views: 0
1. Today, the development environment has rebuilt a jenkins, and encountered a failure to execute the remote shell script.
Question 1: java:command not found.
Environment variable problem: The environment variable of jenkins is taken by default, and the environment variable PATH needs to be configured by the shell script.
Question 2: The output of nohup needs to be redirected, otherwise the command cannot be executed (/dev/null 2>&1 &).
Complete example:
Origin http://10.200.1.11:23101/article/api/json?id=326612581&siteId=291194637