Foreword
The company's own internal general use gitlab, can refer to this https://www.cnblogs.com/liushui0306/p/12455673.html
Open a new free-style project Jenkins
Source Management
- Repository URL address code repository
- Credentials git repository login ID and password credentials
- The specified branch (empty behalf any) default branch
*/master
Repository URL address code repository
Note: If the link is https way, it addresses the top right corner point SSH
Credentials opening the Jenkins button, enter the git repository login ID and password
Upload python script remote git repository
Construction of execution shell
Execute shell, upload requirements.txt, and then execute the script pytest