[jenkins] jenkins configuration gitlab project

Table of contents

1. Install the plug-in

2. Generate access token

1. Generate access token in gitlab

2. Enter "Name" and "Expries at", check "api"

3. Click "Create personal access token" to generate an access token and record it.

 3. Jenkins configures gitlab access tokens

Fourth, configure gitlab information in the jenkins project


1. Install the plug-in

2. Generate access token

1. Generate access token in gitlab

2. Enter "Name" and "Expries at", check "api"

3. Click "Create personal access token" to generate an access token and record it.

 3. Jenkins configures gitlab access tokens

Log in to Jenkins, click "System Management" -> "System Settings" -> "gitlab", and configure as follows:

 

Fourth, configure gitlab information in the jenkins project

ConnectionGitlab echoes the Connection name created above

The main in the above picture is the key, otherwise it will report ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.

Guess you like

Origin blog.csdn.net/legend818/article/details/130033968