Rapid-fire: how do you reload JCasC and safely restart from the command line?
BeginnerConceptBest practices & rapid-fire commands
Answer
curl -X POST -u admin:$TOKEN https://jenkins/configuration-as-code/reload
java -jar jenkins-cli.jar -s https://jenkins/ -auth admin:$TOKEN reload-jcasc-configuration
java -jar jenkins-cli.jar -s https://jenkins/ -auth admin:$TOKEN safe-restart
java -jar jenkins-cli.jar -s https://jenkins/ -auth admin:$TOKEN quiet-down
More on Best practices & rapid-fire commands
What are the top Jenkinsfile best practices you follow?IntermediateWhat are the top controller best practices?IntermediateRapid-fire: how do you get the initial admin password?BeginnerRapid-fire: how do you list installed plugins and their versions?BeginnerRapid-fire: how do you trigger a parameterized build with curl and follow it?BeginnerRapid-fire: how do you run the controller in Docker for a quick test?Beginner