Maintaining Build Jobs
For components deployed in the Kubernetes environment, you can maintain build jobs in the build job list.
Maintenance Operations
Operation | Description |
---|---|
Editing a Build Job | |
Starting a Build Job | See Starting a Build Job. |
Viewing Details/Build History | See Viewing Build Jobs. |
Editing a Package Job
- Log in to ServiceStage.
- Choose Continuous Delivery > Build.
- 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.
- Click Edit. The build job configuration page is displayed.
- Enter a job name.
- (Optional) Enter the description.
- 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.
- Select a build type.
- Custom Dockerfile
Enter custom commands in the compilation box.
- Image
Set Basic Image.
- Custom Dockerfile
- 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.
- Set Archived Image Address.
- Select Cluster.
- (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.
- Click Build Now to start the build.
Click Save to save the settings (not to start the build).
Editing a Source Code Job
- Log in to ServiceStage.
- Choose Continuous Delivery > Build.
- 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.
- Click Edit. The build job configuration page is displayed.
- Enter a job name.
- (Optional) Enter the description.
- Click Modify and set Code Source.
You need to create a repository authorization first. For details, see Authorizing a Repository.
- Select Cluster.
- (Optional) Specify Node Label to deliver the build job to a fixed node based on the node label.
- Click Next.
- Set the environment.
- 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.
- 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.
- Edit a build template.
- 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
- Log in to ServiceStage.
- Choose Continuous Delivery > Build.
- 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.
- Click Build Now to start the build.
- Maintenance Operations
- Editing a Package Job
- Editing a Source Code Job
- Starting a Build Job