Jenkins deployed by docker runs the program on git

1. First, the associated git encountered an error: ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this

This is because I am not running the master branch code of git, so I reported an error. For details, please refer to this article

The solution is to set the designated branch according to the following figure, which means the any branch.

This will clone the code on git to the jenkins container directory as the project, here is: /var/jenkins_home/workspace/first_python/

2. Set the execution shell to run the program

2. After saving the build execution, you can see the execution result in the console output.

 

Unresolved issues:

How to execute pytest use cases with pytest.

 

Guess you like

Origin blog.csdn.net/chuancheng_zeng/article/details/109609996
Recommended