Jenkins - father and son Job actual combat


insert image description here


Under normal circumstances, we usually have many tasks, and then there is a connection between these tasks. For example, one task must be performed first, and another task should be performed after the task is successful.

Applicable scenarios: tasks with a sequence relationship
To give a simple example: when we want to implement UI automation, we first need to download the latest APP package first, and then run the UI automation use case after the download is successful

First, the configuration of the parent job

1. Create a parent job

insert image description here

2. Create a child job

insert image description here

insert image description here

3. Execute the parent job

After the parent job is executed, the child job will be automatically launched for execution

insert image description here

Guess you like

Origin blog.csdn.net/YZL40514131/article/details/130158460