Maintaining Build Jobs
For components deployed in the Kubernetes environment, you can maintain build jobs in the build job list.
Maintenance
Operation |
Description |
---|---|
Editing a Build Job |
|
Starting a Build Job |
See Starting a Build Job. |
Viewing Details/Build History |
See Viewing Build Jobs. |
Branch/Tag |
See Branch/Tag. Source code jobs support this operation. |
Deleting a Build Job |
See Deleting a Build Job. User-created jobs support this operation. |
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 created by the specified user in the search box.
- Click More > 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 OBS. Upload the software package to OBS. For details, see Uploading a File.
- Select a build type.
- System default
- Select the language of the basic image, which must be the same as that of the software package.
- Set Basic Image Tag.
The build node can download basic images only when it can access the public network.
- Custom Dockerfile
- Image
- System default
- 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 More > 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.
Branch/Tag
- 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.
- Choose More > Branch/Tag and set build parameters.
- Select Branch/Tag.
- Select the corresponding branch or tag from the drop-down list.
- Specify Commit ID for the branch or tag.
- Click OK.
Deleting 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 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 More > Delete.
- Click OK.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot