Add steps to a job
In this topic, you learn how to add one or more server scripts as steps to a job and define how and in which order these server scripts are executed when the job is triggered.
Prerequisites
-
You have defined the schedule of a job.
-
You have created one or more server scripts you want to include in the job.
Procedure
-
In the Cockpit, go to Tools and click Job Manage.
-
From the job table, click your job to open it.
You can hide all artifacts created by others to find your artifacts easier. To do that, change the Updated By filter to Me.
-
Navigate to the Steps tab.
-
In the table toolbar, click +Add to add a new server script.
Result: The Server Script dialog opens.
-
Go to your server script project, expand the project and click the server script.
Result: The table adds a row with the details of the server script.
-
In Error Handling, define the next action in case of a server script error.
-
Repeat for each server script you want to include in the job.
-
Click Save.