Updated on 2024-11-15 GMT+08:00

Editing a Package Job

This section describes how to edit a package job.

Prerequisites

The package job to be edited is available.

Editing a Package Job

  1. Log in to ServiceStage.
  2. Choose Continuous Delivery > Build.
  3. On the Build page, use either of the following methods to search for a build job:

    • Select User created and select the CCE cluster and build job status. Then, select the target build job in the build list.
    • Search for the build job created by the specified user in the search box.

  4. Click More > Edit. The build job configuration page is displayed.
  5. Enter a job name.

    Enter 1 to 64 characters. Start with a letter or digit. Only use letters, digits, underscores (_), and hyphens (-).

  6. (Optional) Enter the description, which contains up to 64 characters.
  7. Set Package Source.

    The following upload methods are supported:

    • Select the corresponding software package from the SWR software repository. Upload the software package to the software repository. For details, see Uploading the Software Package.
    • Select the corresponding software package from OBS. Upload the software package to the OBS bucket in advance. For details, see Streaming Upload (PUT).

  8. Set Build Type.

    • System default
      1. Select the language of the basic image, which must be the same as that of the software package.
      2. Set Basic Image Tag.

        The build node can download basic images only when it can access the public network.

    • Custom Dockerfile

      Enter custom commands in the compilation box.

    • Image

      Set Basic Image.

  9. Set Image Class.

    • Public: This is a widely used standard image that contains an OS and pre-installed public applications and is visible to all users. You can configure the applications or software in the public image as needed.
    • Private: A private image contains an OS or service data, pre-installed public applications, and private applications. It is available only to the user who created it.

  10. Specify Archived Image Address.
  11. Select Cluster.
  12. (Optional) Specify Node Label to deliver the build job to a fixed node based on the node label.

    For details about how to add a label, see Adding a Node Label.

  13. Determine whether to execute the build:

    • If yes, click Build to save the settings and execute the build job.
    • If no, click Save to save the settings only.