Jenkins profile


JenkinsJ is a software that allows continuous integration and enables continuous integration and continuity of projects, while Jenkins can be used for a number of test and deployment technologies.

Gitlab is generally used as a source repository for r&d projects, and Jenkins is a tool that allows continuous integration delivery. Through Webhook trigger, when the source code base is changed, the trigger event will inform Jenkins to pull the project for construction, so as to realize the continuous deployment of the project.

Certificate generated


1. Run the following command on the node where Jenkins is installed

ssh-keygen -t rsa -C "[email protected]" -b 4096
Copy the code

2. Copy id_rsa.pub to git

3. Go to the Jenkins credential configuration page

4. Add the ID_RSA private key

Jenkins configuration


Create a project

  1. Add credentials

Configure the project git address and authentication credentials

Configuring build triggers

Configuration token

Configure the build execution script

So far, the Jenkins configuration has been completed

# Git configuration


1. The hook is added

Go to the Git project Integrations page and add hooks

test


Click on the test

Back to Jenkins you can see

The configuration is complete


** Three people must have my teacher, welcome to guide learning **