Editing a Region Release Task Created Using Manual Configurations
This section describes how to edit a region release task created by Creating a Region Release Task Using Manual Configurations.
Prerequisites
The region release task created using manual configurations is not in the Running state. For details about how to check the region release task status, see Viewing Region Release Task Details.
Procedure
- Log in to ServiceStage.
- Choose Release Management.
- Click Try new edition now or Try New Edition to switch to the Release Management page of the new version.
The data of the old and new versions are isolated. Switching them will not cause release task data loss.
- Choose Region Release Tasks.
- Use either of the following methods to go to the page for editing a release task:
- Directly edit: Click Edit in the Operation column of the target release task.
- Edit after viewing details: Click the target release task. After Viewing Region Release Task Details, click Orchestrate Release Task in the upper right corner.
- Set Best Effort Policy.
- Enable it to continue releasing other components when a component fails to be released.
- If it is disabled, the release task fails when a component fails to be released.
- Click Set Basic Info in the upper right corner and set basic release task parameters by referring to the following table.
Parameter
Description
Release Task
The release task name must be unique in the same enterprise project.
Enter 2 to 64 characters. Start with a letter and end with a letter or digit. Only use letters, digits, underscores (_), and hyphens (-).
Enterprise Project
Enterprise projects let you manage cloud resources and users by project.
It is available after the function is enabled. For details, see Enabling the Enterprise Project Function.
- Click the drop-down list to select an existing enterprise project.
- Click Create Enterprise Project to create an enterprise project and select it. For details, see Creating an Enterprise Project
Description
Description of a release task.
- Click
.
- Enter up to 128 characters.
- Click
.
- (Optional) Select another release task example.
Selecting another sample will clear all parameter settings of the release task. Exercise caution when performing this operation.
- Click Select Example in the upper right corner and determine whether to use the example to create a release task.
- If it is not selected, the example is not used to create a release task.
- If it is selected, the example is used to create a release task.
- Simple Example: Automatically add a build model and select an existing build task created by the system.
- Common Example: Automatically add the build-upgrade component model, select an existing build task created by the system, and use the generated software package or image package as the source of the software package or image package of the component to be upgraded in the component upgrade task.
- Click OK.
- Click Select Example in the upper right corner and determine whether to use the example to create a release task.
- If Example is not selected, perform the following editing operations in the specified phase and then go to 12.
- Modify the phase name: Click
next to the phase name and set Phase Name, for example, Create Application.
- Delete a group task: Move the pointer to a task card in a group and click
.
- Edit a group task: Click a task card in a group and edit the task by referring to Table 1.
Table 1 Editing a region release task Operation
Description
Edit application creation
- Enter a task name containing 1 to 64 characters.
- Set the application name.
The application name must be unique in the same enterprise project.
Enter 2 to 64 characters. Start with a letter and end with a letter or digit. Only use letters, digits, underscores (_), and hyphens (-).
- Select an enterprise project.
Enterprise projects let you manage cloud resources and users by project.
It is available after the function is enabled. For details, see Enabling the Enterprise Project Function.
- Click the drop-down list to select an existing enterprise project.
- Click Create Enterprise Project to create an enterprise project and select it. For details, see Creating an Enterprise Project
- Click
, enter up to 128 characters as the description, and click
.
- Click OK.
Edit component creation
- Enter a task name containing 1 to 64 characters.
- (Optional) Select a task in the previous phase that can be associated with the current task from the Associated Task drop-down list.
For example, select the Create Application task created in the previous phase.
- Set component parameters.
For container-deployed components, see Creating a Component Based on a Container Using Manual Configurations. For VM-deployed components, see Creating a Component Based on a VM.
If you specify Associated Task, for example, the Create Application task created in the previous phase, the Application of the component is fixed to the application set in the selected Create Application task.
- Click OK.
Edit component upgrade
- Image from Build is enabled when the Update Component task is created.
- Select the application to which the component belongs from the Application drop-down list.
- Click Change, select the component to be upgraded of the selected application again, and click OK.
Only one container-deployed component can be added to the upgrade task. The component status is Running, Not ready, or Abnormal. For details about how to check the component status, see Viewing Component Details.
- Select a build task from the Build drop-down list as the component image source for component upgrade.
By default, the archive address of the image package output during component upgrade is the archive address set in the selected build task displayed in the Build Output drop-down list.
- Click OK.
- Image from Build is disabled when the Update Component task is created.
- Enter a task name containing 1 to 64 characters.
- Set component upgrade parameters by referring to 5 to 6 in Upgrading Components in Batches.
- Click OK.
Edit build
- Enter a task name containing 1 to 64 characters.
- Select a build task from the Build drop-down list.
- Click OK.
Edit manual approval
- Enter a task name containing 1 to 64 characters.
- Set Approved By.
- Add an approver: Select the approver of the release task process from the Approved By drop-down list.
If the approver list cannot be obtained, contact the administrator to create a custom policy that has the iam:users.listUsers permission of IAM, and bind the policy to the user group to which the current account belongs.
- Delete an approver: Click
next to an approver.
- Add an approver: Select the approver of the release task process from the Approved By drop-down list.
- Set Approval Mode.
- Approved by all: The release task process can continue only after all selected approvers approve the task. If any approver rejects the release, the release fails.
- Approved by any person: The release task process can continue after being approved by any of the selected approvers.
- Click OK.
- Insert a task to be executed in a new sequence under a task group: Move the cursor to the task card in the group, click
, and insert a task by referring to Table 2.
- Create a group and task: Click Create Parallel Task. In this phase, create a group and task by referring to Table 2.
- Create a phase and group: Click
next to a phase to create a phase and group. Click Create Task and create a group and task by referring to Table 2.
- Delete a phase: Click
next to the phase name and click OK.
Deleting a phase will delete all tasks in the phase.Table 2 Creating a task Task Type
Description
Create Application
Add an application creation task to the release task.
- Use either of the following methods to go to the Create Application page:
- Choose All > Create Application > Create Now.
- Choose Application Management > Create Application > Create Now.
- Enter a task name containing 1 to 64 characters.
- Enter an application name.
The application name must be unique in the same enterprise project.
Enter 2 to 64 characters. Start with a letter and end with a letter or digit. Only use letters, digits, underscores (_), and hyphens (-).
- Select an enterprise project.
Enterprise projects let you manage cloud resources and users by project.
It is available after the function is enabled. For details, see Enabling the Enterprise Project Function.
- Click the drop-down list to select an existing enterprise project.
- Click Create Enterprise Project to create an enterprise project and select it. For details, see Creating an Enterprise Project
- Click
, enter up to 128 characters as the description, and click
.
- Click OK.
Create Component
Add a component creation task to the release task.
- Use either of the following methods to go to the Create Component page:
- Choose All > Create Component > Create Now.
- Choose Application Management > Create Component > Create Now.
- Select the application to which the component belongs from the Application drop-down list.
- Select a component creation method.
- Click Create Component and perform the following operations to create a component:
- Enter a task name containing 1 to 64 characters.
- (Optional) Select a task in the previous phase that can be associated with the current task from the Associated Task drop-down list.
For example, select the Create Application task created in the previous phase.
- Set component parameters. For container-deployed components, see Creating a Component Based on a Container Using Manual Configurations. For VM-deployed components, see Creating a Component Based on a VM.
If you specify Associated Task, for example, the Create Application task created in the previous phase, the Application of the component is fixed to the application set in the selected Create Application task.
- Click Deploy Now.
Select a created component from the component list and click Set to reset component parameters.
Select a created component from the component list and click Remove to remove the component from the component creation task.
- Go to 6.
- Click Clone Component and perform the following operations to configure the component:
- Select the component to be cloned from the component list and click OK.
- Click the component to be cloned in the component list and click Set to reset component parameters.
For container-deployed components, see Creating a Component Based on a Container Using Manual Configurations. For VM-deployed components, see Creating a Component Based on a VM.
- Go to 6.
- Click OK.
Update Component
Add a component upgrade task to the release task.
- Use either of the following methods to go to the Update Component page:
- Choose All > Update Component > Create Now.
- Choose Application Management > Update Component > Create Now.
- Select the application to which the component belongs from the Application drop-down list.
- Set the component image source.
- If you enable Image from Build, perform the following operations:
- Click Add Component and select only one container-deployed component to add to the upgrade task.
The component status is Running, Not ready, or Abnormal. For details about how to check the component status, see Viewing Component Details.
- Click OK.
You can click Change to reselect a component.
- Select a build task from the Build drop-down list as the component image source for component upgrade.
By default, the archive address of the image package output during component upgrade is the archive address set in the selected build task displayed in the Build Output drop-down list.
- Go to 6.
- Click Add Component and select only one container-deployed component to add to the upgrade task.
- If you disable Image from Build, perform the following operations:
- Click Select Components to Upgrade and select the component to be added to the upgrade task.
The component status is Running, Not ready, or Abnormal. For details about how to check the component status, see Viewing Component Details.
- Click OK.
You can click Remove on the card of a component in the list of selected components to be upgraded to remove the component from the list.
Click Set on the card of the specified component in the list of selected components to be upgraded, enter a Task Name containing 1 to 64 characters, set component upgrade parameters by referring to 5 to 6 in Upgrading Components in Batches, and click OK.
- Go to 6.
- Click Select Components to Upgrade and select the component to be added to the upgrade task.
- Click OK.
Build
Add a job created for building images from source code, or a JAR, or WAR package to the release task.
- Use either of the following methods to go to the Build page:
- Choose All > Build > Create Now.
- Choose Application Management > Build > Create Now.
- Enter a task name containing 1 to 64 characters.
- Select a build task from the Build drop-down list.
- Click OK.
Manual Approval
Add a manual approval checkpoint task to the release task. If manual approval is set, the release task process can continue only after being approved by related approvers.
- Use either of the following methods to go to the Manual Approval page:
- Choose All > Manual Approval > Create Now.
- Choose Checkpoint Tasks > Manual Approval > Create Now.
- Enter a task name containing 1 to 64 characters.
- Select the approver of the release task process from the Approved By drop-down list.
If the approver list cannot be obtained, contact the administrator to create a custom policy that has the iam:users.listUsers permission of IAM, and bind the policy to the user group to which the current account belongs.
- Set Approval Mode.
- Approved by all: The release task process can continue only after all selected approvers approve the task. Otherwise, the release fails.
- Approved by any person: The release task process can continue after being approved by any of the selected approvers.
- Click OK.
Manual Trigger
Add a manual triggering task to the release task. If manual triggering is set, the release task process can continue only after you manually confirm it.
Use either of the following methods to create a manually triggered task:- Choose All > Manual Trigger > Create Now.
- Choose Checkpoint Tasks > Manual Trigger > Create Now.
- Use either of the following methods to go to the Create Application page:
- Modify the phase name: Click
- If you select Example and Simple Example, perform the following operations:
- Click
next to the phase name, set Phase Name, and click OK.
- Click Create Build Task and set build task parameters.
- Enter a task name containing 1 to 64 characters.
- Select a build task from the Build drop-down list.
- Click OK.
- Go to 12.
- Click
- If you select Example and Common Example, perform the following operations:
- Click
next to the Build phase, set Phase Name, and click OK.
- Click Create Build Task and set build task parameters.
- Enter a task name containing 1 to 64 characters.
- Select a build task from the Build drop-down list.
- Click OK.
- Click
next to the Upgrade Component phase, set Phase Name, and click OK.
- Click Create Component Upgrade Task and set component upgrade task parameters.
- Select the application to which the component belongs from the Application drop-down list.
- Click Add Component. Only one container-deployed component whose status is Running, Not ready, or Abnormal can be added to the upgrade task.
For details about how to check the component status, see Viewing Component Details.
- Click OK.
- Select a build task from the Build drop-down list as the component image source for component upgrade.
By default, the archive address of the image package output during component upgrade is the archive address set in the selected build task displayed in the Build Output drop-down list.
- Click OK.
- Go to 12.
- Click
- Perform subsequent operations based on whether to release the release task.
- If yes, click Save and Execute, select the task to be executed, and click Execute.
If a checkpoint task is set in the release task, approve the task based on the checkpoint task type by referring to the following table.
Checkpoint Task Type
Approval Procedure
Manual Approval
- Click the release task to be executed. The Release Process View page is displayed.
- Move the cursor to the card of the manual approval task to be approved.
- Click Approve. The Manual Approval dialog box is displayed.
- Enter Comments to determine whether to pass the approval.
- Click Reject to terminate the release task. The release task fails to be released.
- Click Agree to continue the release.
Manual Trigger
- Click the release task to be executed. The Release Process View page is displayed.
- Move the cursor to the card of the manual triggering task to be approved.
- Click Approve. The Manual Trigger dialog box is displayed.
- Determine whether to pass the approval.
- Click Reject to terminate the release task. The release task fails to be released.
- Click Agree to continue the release.
- On the Release Process View page, you can view the execution status of the release process and wait until the release task is complete.
- After the release task is saved, its Release Status is Initialized. For details about how to check the release task status, see Viewing Region Release Task Details.
- After the release task is saved, you can manage the release task by referring to Managing Region Release Tasks.
- If no, click Save.
-
After the release task is saved, its Release Status is Initialized. For details about how to check the release task status, see Viewing Region Release Task Details.
- After the release task is saved, you can manage the release task by referring to Managing Region Release Tasks.
-
- If yes, click Save and Execute, select the task to be executed, and click Execute.
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