You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Objective: make Jenkins able to deploy itself. This requires graceful shutdown after all jobs are done. Then systemd will start Jenkins again, probably new version of it.
Jenkins may expose unprotected URL endpoint to trigger shutdown. This is to be used by automated scripts in Jenkins app itself. "Unprotected" means that the URL or credentials (or maybe UNIX socket) is only known to Jenkins user.
Possible implementation:
"backdoor" plugin injected on each deploy in addition to any other plugins.
This plugin exposes the endpoint URL like /<secret>/shutdown. The <secret> is new on each start and is written to a private file.
When configuration is changed, a script reads the secret file, finds the URL and hits it.
The text was updated successfully, but these errors were encountered:
Objective: make Jenkins able to deploy itself. This requires graceful shutdown after all jobs are done. Then systemd will start Jenkins again, probably new version of it.
Jenkins may expose unprotected URL endpoint to trigger shutdown. This is to be used by automated scripts in Jenkins app itself. "Unprotected" means that the URL or credentials (or maybe UNIX socket) is only known to Jenkins user.
Possible implementation:
/<secret>/shutdown
. The<secret>
is new on each start and is written to a private file.The text was updated successfully, but these errors were encountered: