Editing a Source Code Job
This section describes how to edit a source code job.
Prerequisites
The source code job to be edited is available.
- For system-created build jobs, see Creating and Deploying a Component Based on a Container Using UI Configurations and Creating and Deploying a Component Based on a Container Using YAML Configurations.
- For user-created build jobs, see Creating a Source Code Job.
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 name.
Enter 1 to 64 characters. Start with a letter or digit. Only use letters, digits, underscores (_), and hyphens (-).
- (Optional) Enter the description, which contains up to 64 characters.
- Click Modify and set Code Source.
You need to create a repository authorization first. For details, see Creating Repository Authorization.
- 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 Adding a Node Label.
- Click Next.
- (Optional) Specify Node Label to deliver the build job to a fixed node based on the node label.
- 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.
When using the Build Common Cmd template for build, enter a compilation command that contains up to 512 characters. If there are more than 512 characters, an error message is displayed, indicating that the task input parameter is incorrect. In this case, you can add multiple Build Common Cmd plug-ins to split the command.
- 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.
- 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.
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