Write directory title here
1. JOB project configuration
1. Add description
Optional options can be filled or not filled
2. Limit the running nodes of the project
The node must have the configuration required for the operating environment
Node configuration tutorial: https://blog.csdn.net/YZL40514131/article/details/131504280
3. Source code management
The script needs to be pushed to the remote warehouse
4. Build triggers
Timing build and polling SCM can be selected
Timing build: according to the set timing time, the scheduled task will be executed automatically
Polling SCM: when the code in the remote warehouse changes, the automation code will be executed automatically
5. Construction steps
a.: python -m pytest ${methods} --alluredir=./reports --clean-alluredir
${methods} gets the parameters passed during the parameterized build process, the default is testcases
b. The current path is /root/jenkins_mulu/workspace/test_backend
c. workspace: the job name is the project name
6. Post-build operations
Special Note: Keep the names
consistentPlugin Post Build taskShell execution after generating the report
python3 send_ding.py "${JOB_BASE_NAME}"
: pass the parameter "${JOB_BASE_NAME}" to the send_ding.py file. JOB_BASE_NAME: Indicates the job name
In send_ding.py, you need to use sys.argv[1] to receive. When the job is built, perform post-build operations, generate test reports and send Dingding notifications