I have jenkins container which runs pipeline, and fails on script approval: Although I went to in-scriptApproval screen, and approved it, on the next run it shows them again. The same job works perfectly on other VM Jenkins. Answer The issue was with the wrong UID and GID of the user. after I’ve changed it from jenkins to 1000 1000
Tag: jenkins-pipeline
How to set and record alerts for Jenkin server down and up
I have Jenkins pipeline job which goes thought all our Jenkins servers and check the connectivity (runs every few minutes). ksh file: I would like to add another piece of code, which record all the times that server was down (it should include the name of the server and timestamp) into a file, and in case the server is up
How to use source command within Jenkins pipeline script
I recently rewrite bash execution command into Jenkins pipeline. The old code is like Now I use pipeline script to wrap the command, like this However, I got an error, as…/.jenkins/script.sh: line 9: source: environment.sh: file not found. When I try to less environment.sh, it display correctly. So I suspect something wrong with source command within sh wrap. Before using