Article Directory
1. Jenkins plugin installation
- ant
- Build Failure Analyzer
- Build Monitor View
- Build Timeout
- docker
- Email Extension Plugin
- gitee
- github
- gradle
- java mail
- JDK Parameter Plugin
- kubernetes
- locale
- chinese
- Matrix Authorization Stratepy Plugin
- maven
- next BUild Number Plugin
- OWASP Markup Formatter Plugin
- Pam authentication Plugin
- pipeline
- Publish Over SSH
- ReBuilder
- Repository Connector
- Role-based Authorization Strategy
- sonar
- SSH Server
- ThinBackup
- Subversion Plug-in
- WMI Windows Agents Plugin
- Workspace Cleanup Plugin
2. Configuration
2.1 Global tool configuration
-
maven
-
git
-
docker
2.2 Global configuration
2.2.1 gitee configuration
After the configuration is complete, click Apply and Save.
3. Create tasks
- new task
2. Build a Maven project
- Add the git warehouse address,
select https, and then enter your own gitee account password.
If SSH is required, an SSH key needs to be configured.
add gitee ssh
Use the command to add in the linux system
git config --global user.name "AD_youyu"
git config --global user.email "YourEmail"
Add the key with the following command
ssh-keygen -t rsa -C "YourEmail"
# 密钥默认地址
/root/.ssh
# 私钥是id_rsa
# 公钥是id_rsa.pub
- Copy the public key and add the public key to gitee
The link is as follows:
https://gitee.com/profile/sshkeys
- Select SSH mode
- Add your own username and private key
Passphrase is set by yourself, and the blogger directly sets it to empty.
Just save it.
- Click apply, save
- Click to build the project
Jenkins starts automatically at boot
# jenkins开机自启
systemctl enable jenkins
# 查看jenkins服务是否添加开机自启动
systemctl list-units | grep jenkins