Jenkins continuous integration system to install the windows

You must first download and install Tomcat, run by Tomcat Java-based web projects. Download Jenkins, attention to be installed in the Tomcat webapps directory. Installing Jenkins will automatically open a browser to http: // localhost: 8088 /. Follow the prompts to view the password to open the file, fill in the password input box. After prompted to install the plug-in can be installed according to their own, or the default installation, the installation time will be very long. If you later use a plug-in is not installed, it can be installed on your system. Wait for the installation to create an administrator account, enter the main page.

First we create a new task, click on the map to create a new task, the task name 'sample task', select 'project to build a free-style' 

 

Create a project to proceed, or several, click on the building before skipping to increase the build steps.

 

 

Click on 'processing command execution windows'

Enter 'python -h'

 

Click Apply to create a task, click on the 'Build Now'

Created task will appear in the history of creation below, click on the task 1, enter the page, click on the console input, error as shown:

 

Access to information, find python path is not set. Now re-set the python path. Return to the Control Panel, click on the lower left of the execution status. Click Settings.

 

 

Add environment variables, set the environment variable python. Click Save and re-run the task 1. 1 into the mission, click on the console input, run correctly.

 

 

 

Next, create test_sample.py test file test. Anti-in D: \ test file directory. Modify the build command,

# Add () function 
DEF the Add (A, B):
return A + B

# Test add () function
DEF test_add ():
Assert the Add (2,4) ==. 5

 

 

 

Click Save, re-enter the job 1, re-run, if there is an error: eventle module in greenio under the base file errors, see the following solution:

 在cmd卸载pytest和eventle,重新安装eventle模块,发现nameko和kombu版本出现问题,卸载这两个模块和eventle模块,再次重新安装eventle和pytest模块。运行可以通过。

 

 

Guess you like

Origin www.cnblogs.com/wzjbg/p/11592212.html