Jenkins
Jenkins is self-contained, open source automation server, used for CI/CD Pipeline . Jenkins is an automation server for supporting practically every tool as a part of the delivery pipelines.
Prepare
When referring to this document to use Jenkins, please read and ensure the following points:
-
This application is installed by Websoft9 console.
-
The purpose of this application complies with the MIT open source license agreement.
-
Configure the domain name or server security group opens external network ports for application access.
Getting started
Initial setup
-
When completed installation of Jenkins at Websoft9 console, get the applicaiton's overview and access information from My Apps
-
Access the initialization page, Jenkins prompts to unlock
-
Access jenkins container, and run below command to get unlock password
cat /var/jenkins_home/secrets/initialAdminPassword
-
After successful login, complete the following steps: installing plugins, creating administrators, etc
-
Go to Jenkins Console and start using it
Github + Jenkins automatic construction
The following is a task to help users quickly get started by using Jenkins to automatically build and deploy projects on Github:
-
Set Personal access tokens in GitHub for Jenkins connection
-
Ensure that the Github plugin is installed and enabled in Jenkins
-
Create a job at Jenkins, set the source code from Github, and set the triggering strategy
Configuration options
-
Install and manage plugins: Manage Jenkin > Plugins
-
Multilingual(✅)
-
SMTP: Install Jenkins plugin Email Extension, then Manage Jenkins > Configure System
-
java -jar jenkins-cli.jar [-s JENKINS_URL] [global options...] command [command options...] [arguments...]
-
curl JENKINS_URL/job/JOB_NAME/buildWithParameters --user USER:TOKEN --data id=123 --data verbosity=high
-
Online upgrade(✅): When there is an update, the backend will prompt and you can update and upgrade online through the backend
Administer
- Backup and Recovery: Backup plugin provides backup and recovery capabilities for Jenkins.