Jenkins Configuration as Code
To setup Jenkins on a Linux instance:
- Clone or checkout the repository on the server
- Rename the file
mjovanc.com
to your domain - Modify file (if needed) in
config/jenkins.yml
- Make setup_start.sh executable
chmod +x ./setup_start.sh
- Run
./setup_start.sh
to install all dependencies and run the server
To get a new list of installed plugins on Jenkins copy the code from get_plugins.groovy and paste it in Script Console inside Jenkins when logged in. The output will be an ordered list (alphabetically). The plugins file used for the Docker image is plugins.txt. The file defines what plugins should be installed when building the Docker image and should be updated when installing a new plugin. This should in the future be automated to avoid manual administration.