Recently I wrote a Linux like initd script to start/stop my web application.
The script works well when running it in shell of linux. The web application will run in background by daemon.
However I found both daemon and web application(java) exited immediately if I started the script in Jenkins as a shell step of build …
Read MoreJenkins supports ssh authentication in CLI.
Below is a command to verify that I am authenticated:
1 2java -jar jenkins-cli.jar -s http://myserver/jenkins who-am-i 3 4 Authenticated as: myuser 5 Authorities: 6 authenticated
However you still would meet permission error when running groovy script in CLI.
1 …
Read More