Advanced
Тема интерфейса

Maintaining Build Jobs

For components deployed in the Kubernetes environment, you can maintain build jobs in the build job list.

Maintenance Operations

Table 1 Maintenance operations

Operation

Description

Editing a Build Job

Starting a Build Job

Viewing Details/Build History

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 the CCE cluster where the component is deployed and the build job status, and select the specified build job in the build list.
    • Search for the build job in the search box.

  4. Click Edit. The build job configuration page is displayed.
  5. Enter a job name.
  6. (Optional) Enter the description.
  7. Set Package Source.

    The following upload modes are supported:

    • Select the corresponding software package from the SWR software repository. Upload the software package to the software repository. For details, see Uploading a Software Package.
    • Select the corresponding software package from OBS. Upload the software package to the OBS bucket in advance. For details, see Uploading a File.

  8. Select a build type.

    • 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. Set 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 Managing Node Labels.

  13. Click Build Now to start the build.

    Click Save to save the settings (not to start the build).

Editing a Source Code 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 Edit. The build job configuration page is displayed.
  5. Enter a job name.
  6. (Optional) Enter the description.
  7. Click Modify and set Code Source.

    You need to create a repository authorization first. For details, see Authorizing a Repository.

  8. Select Cluster.

    1. (Optional) Specify Node Label to deliver the build job to a fixed node based on the node label.
    2. Click Next.

  9. Set the environment.

    1. Edit a build template.

      Select Maven, Ant, Gradle, Go, Docker, or Build Common Cmd. You can compile and archive binary packages or Docker images at the same time.

    2. Select an archive mode.
      • Publish Build Artifact: Binary package archive plug-in, archived to the SWR software repository.
      • Publish Build Image: Image archive plug-in, archived to the SWR image repository.

  10. Click Build to save the settings and start the build.

    Click Save to save the settings (not to start the build).

Starting a Build 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 the CCE cluster where the component is deployed and the build job status, and select the specified build job in the build list.
    • Search for the build job in the search box.

  4. Click Build Now to start the build.