Creating tasks
This section will teach you how to create tasks under a job. A build pipeline will contain one or more jobs, and each job will contain one or more tasks. In the previous section, you created a build pipeline that contains only one job. Follow these steps to create a task:
- Edit a build pipeline by clicking on three dots symbols, and then on Edit.
Figure 2.12 – Editing a build pipeline
- After you edit a build pipeline, click on Tasks and then the + symbol, type
Command line
in the search box, and then click on Add:
Figure 2.13 – Adding a command-line task
- Click on the Command line task to enter the following details:
- Display name:
First Command
Line Task
- Script: For this demo, we will write a simple script to display the phrase Hello First Task –
echo "Hello
First Task"
:
- Display name:
Figure 2.14 – Entering detail on the Command line...