Problem description: After the
Jenkins build is completed, the access to the picture cannot be accessed
Description:
This is the address of the picture I stored: files The
request address of the picture:
https://ip:port/files/3ccf3429f1c142c99a839b61af3b3ded.jpg
The original Jenkins script:
nohup java -jar /project/stla-server-1.0-SNAPSHOT.jar >/project/logs/stla-server.log 2>&1 &
After the construction is completed, access to the address of the picture on the browser, there will be a 404 error
solution:
Modify the script: first go to the directory where it is started, and then start it, it is ok
cd /project/
nohup java -jar stla-server-1.0-SNAPSHOT.jar >/project/logs/stla-server.log 2>&1 &