jenkins - Git version management

1. Jenkins Git version management

1. Git integration

The Git plugin is required to build the task of pulling code from the Git source code warehouse on Jenkins

2. Install Git on the machine executing the job

yum install git -y

3. Unable to connect to the warehouse, the problem is solved

When I created the jenkins pipeline task, I selected according to the following figure, but an error occurred

insert image description here

Solution 1: (not recommended)

1. Set the warehouse to public, and then re-add the warehouse address

insert image description here

Solution 2: By way of credentials

Add credential edit page

insert image description here

insert image description here

1. Build a job and view the console

insert image description here

Guess you like

Origin blog.csdn.net/YZL40514131/article/details/130157522