linux + jenkins + github + python continuous integration package mounted on linux war Jenkins

Pre-installed on the server 1. Referring jenkins: a package mounted Jenkins linux war

2. Create a new free-style job, the name at random from

Configuration Git (pull github code)

Copy github python code address from the following second to the Repository URL FIG.

Note: If the project is private, need to be added prior credentials (user name github username, password github password) so you can choose the image above credentials; if the project is public, you do not need to add credentials

 Step 4. Add Construction

5. Click on the building you can immediately see the build log and output in the console

 

Special Note:

1. $ {WOEKSPACE} jenkins is built-in variable, it refers to the current job path workspace

2. not able to find the time to perform python3 run_method.py module "requests", solution: install module requests on linux

 

Guess you like

Origin www.cnblogs.com/wang-mengmeng/p/11333248.html