JMeter + ant + Jenkins continuous integration deployment environment (b)

The above is the main ant call jmeter interfaces, here it is the Jenkins Continuous Integration

Why ant, without directly view jmeter in aggregate report? ?

Here: the use of command execution, and can be integrated in Jenkins Lane.

 

Jmeter integrated ant + jmeter

premise:

#, Jenkins with a good installation, Tomcat start, enter the access address: http: // ip: port / jenkins, can enter into Jenkins interface, enter the account password previously set to enter the working interface.

#, Jenkin configuration (the configuration tool in the chapter)

(1), arranged JDK

(2) disposed Ant

(3) to download the plug-in Ant Plugin

(4), to download the plug HTML Publisher Plugin

(5) to download the plug-in Email Extension Plugin

I. Construction of the steps of:

(1), to create a free-style job.

(2), the step-Ant build configuration, other configurations of the above the tube.

 

(3), arranged build.xml path. The high point of the opening page, configuration is as follows:

 

(4), after the step of increasing the build -html, and email.

# Add html steps:

# Add email steps to qq-mail, for example;

1, the first e-mail system: System Management - System Settings

 

Declining find Jenkins Location, here to fill QQ number to send mail E-mail:

Then slipped find Extended E-mail Notification, fill in the following information

View decline in mail notification here, where the need to open the set to set the mailbox qq - account - View decline below:

# Enable first two service

# The generated authorization code to fill in the following code inside

(On how to use, click on the link service back to look at)

# Send the server port number is modified to 465 or 587, 456 used here

# The bottom of the "encrypted connection using the following types of" modify "SSL" connection; Check here like

 

2, after the increase Editable Email Notification Construction 

 Advanced Set Point Open:

Trigger conditions need to select, I choose here always, to: developer deleted, click Add, select the following Recipient List (recipient list)

Click here for high-level, you can fill in the recipient list:

Then click on the following application - Save.

Second, the project returned to the page, click on the building immediately

1, can be viewed below whether to build successfully, and then see whether to generate html and send messages successfully.

2, click to enter the building project, you can click on the console output to see if there is an error message

Three, HTML encounter display problems

1, click system management.

2. Click on the command-line script.

3, enter the following command. System.setProperty ( "hudson.model.DirectoryBrowserSupport. CSP", "")

4, click Run.

Note: jmeter each restart, you must run this command again.

 

Guess you like

Origin www.cnblogs.com/wuzm/p/10926013.html