Jenkins continuous integration CI, continuous deployment CD, integrated Allure report

Jenkins is a platform we install plugins to solve the tasks we want to accomplish

1 Common plugins for Jenkins

  • Allure: A plugin to address Allure reporting and Jenkins integration

  • HTML Publisher: Plugin to integrate HTML reports

  • Robot Framework: Integrated RF

  • Zentimestamp: integrated date and time

  • Groovy: Plugin to resolve style loss in automated reports

You don’t need to remember the name of the plugin, as long as it looks familiar, these plugins will be downloaded to the plugins folder in the Jenkins installation directory .

2 Jenkins application

Click New Task or Create a job to create a new job/task, enter the task name, select 构建一个自由风格的软件项目, click OK, and you will enter the configuration page

1) Configure the workspace

Click on General under高级

Select 使用自定义的工作空间and copy the project address in the past

2) Configure the build command

There is a file under our code running.py, and the execution command is python running.py[here if you do not use the corresponding python version when executing, here is the solution]

Click Save and you are now ready to build.


However, I reported several errors during the construction process. If you also encounter them, see if there is anything that can help you:

Upgrade Jenkins from war file

Where is this war file? There is a system information option under Manage Jenkinsthe label, click on it to see your war package address

Click to see the address of the war package

Restart Jenkins

Just add restart after accessing the address:http://localhost:8080/restart

ImportError: No module named xxx

Jenkins uses the 2.7.x version of Python that comes with the system by default. But python3 running.pyafter I completed the report, I could not find the python3 command

You can use the full path of Python to change the command in the build to:

This path can be seen in your Pycharm's Interpreter


3) Jenkins integrated Allure report

  • 1Install the Allure plugin

  • 2 in 全局工具配置setting Allure

  • 3 Configure the post-build operation in the job

Click Save, you can see that there is an additional Allure Report in the project

Click Allure Reportto jump to the allure report. Note that before the second execution, the trend graph on the right is not displayed, and the trend graph is also empty in the report (because the historical data is empty), and the trend graph will be displayed after the second execution

Click to see the report:

The following is the supporting information. For friends who do [software testing], it should be the most comprehensive and complete preparation warehouse. This warehouse also accompanied me through the most difficult journey. I hope it can help you too!

Software testing interview applet

The software test question bank maxed out by millions of people! ! ! Who is who knows! ! ! The most comprehensive quiz mini program on the whole network, you can use your mobile phone to do the quizzes, on the subway or on the bus, roll it up!

The following interview question sections are covered:

1. Basic theory of software testing, 2. web, app, interface function testing, 3. network, 4. database, 5. linux

6. web, app, interface automation, 7. performance testing, 8. programming basics, 9. hr interview questions, 10. open test questions, 11. security testing, 12. computer basics

Information acquisition method:

Guess you like

Origin blog.csdn.net/myh919/article/details/131768640