-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels