Create a New Job

In Devtron, jobs can be created in two ways:

  • Blank Job: This allows you to create a new job from scratch by manually defining all configurations.

  • Clone Job: This allows you to create a new job by reusing the configuration of an existing job.


Create a Blank Job

Who Can Perform This Action?

To create a new Blank Job in Devtron, follow these steps:

  1. Navigate to Devtron DashboardJobs.

    Figure 1: Job's Page
  2. Click Create button in the top-right corner and select Job from the drop-down list.

    Figure 2: Selecting Job
  3. The Create Job page opens. From the left panel, select Blank job, then enter the required details as listed in the table below.

    Fields
    Description

    Project

    Select the project from the dropdown.

    Job Name

    User-defined name for the job in Devtron.

    Description

    Enter the description for the job.

    Tags

    Key-value pairs used for identifying and organizing the application and can be propagated as Kubernetes labels. To learn more refer Tags section.

    Figure 3: Creating Blank Job
  4. Click Create Job. The job will be created, and you will be automatically redirected to the Configurations page to continue setting up the job pipeline.


Create a Clone Job

Who Can Perform This Action?

To create a new Clone Job in Devtron, follow these steps:

  1. From the Devtron Dashboard, navigate to Jobs.

  2. Click the Create button in the top-right corner and select Job from the drop-down list.

    Figure 4: Selecting Job
  3. The Create Job page opens. From the left panel, select Clone Job, then enter the required details as listed in the table below.

    Fields
    Description

    Project

    Select the project from the dropdown.

    Job Name

    User-defined name for the job in Devtron.

    Description

    Enter the description of a job.

    Tags

    Key-value pairs used for identifying and organizing the application and can be propagated as Kubernetes labels. To learn more refer Tags section.

    Figure 5: Creating Clone Job
  4. Click Create Job. The Clone job will be created, and you will be automatically redirected to the Configurations page, where the configuration will be pre-populated based on the selected source job. You may review and modify these settings as required.


Delete Job

Who Can Perform This Action?

To delete a job, you have to first delete any configured pipelines in that job workflow.

  1. Navigate to JobsSelect the jobConfigurationsWorkflow Editor.

  2. Select the job pipeline you wish to delete, and an edit job pipeline modal window will appear.

    Figure 6: Selecting Job Pipeline
  3. Select Delete Pipeline at the bottom left corner of the edit job pipeline modal window to delete the job pipeline.

    Figure 7: Deleting Job Pipeline
  4. A pop-up window will appear asking you to confirm the Delete Pipeline action.

    Figure 8: Confirming Delete Job Pipeline
  5. After deleting any configured pipelines in a job workflow, select Delete Job to delete the job.

    Figure 9: Deleting Job
  6. A pop-up window will appear asking you to confirm the Delete Job action.

    Figure 10: Confirming Delete Job

After creating a job, the next step is to configure the job. Refer to the Configurations section to configure the job.

Extras

Tags

Tags are Key-value pairs used for identifying and organizing the application. Users can propagate tags as Kubernetes labels to enable filtering, bulk operations, and integrations with Kubernetes tools. To do so, follow the steps below.

  1. Click the Add tags to job dropdown on the Create job page.

  2. Under the Tags section, Click + to add a new tag.

  3. You can click X icon to delete an existing tag.

  4. You can click the propagation icon to propagate a tag (turns dark grey when propagated), click again to remove propagation.

Figure 11: Tags

Last updated

Was this helpful?