Downloading Files from OBS
CodeArts Build allows you to download files from OBS. You can use this build action as required.
For details about the restrictions on using OBS, see Restrictions and Limitations.
Build on GUI
Add the Download File from OBS action when configuring build actions. Set parameters by referring to Table 1.
| Parameter | Description |
|---|---|
| Action Name | Assign a custom name to the build action. The name can contain:
|
| Authorized Account | Select the owner of the OBS bucket from which you want to download files.
|
| OBS EndPoint | Optional. This parameter is mandatory when you download files from OBS in other regions. Enter the domain name of the target OBS. If left empty, this parameter defaults to the current region automatically. NOTE: For an OBS endpoint in another region, you need to ensure that the network connection between the default or custom executor and the OBS endpoint is normal. Otherwise, the files cannot be downloaded from OBS. For example, the error message "Name or service not known" will be displayed in the log. |
| OBS Bucket Name | Enter the name of the OBS bucket that you want to upload files to. |
| OBS File Path | Optional. Enter the object path (ObjectKey) of the source file in the OBS bucket. You can download a single file, for example, build/20240101/app.jar, or all files in a directory, for example, build/sdk/. |
| Local File Path | Optional. Enter the target path in the build directory where the files will be downloaded, for example, downloads/. The path can be a relative or absolute path. If this parameter is left blank, the files will be downloaded to the root directory of the build directory. |
| Continue After Failure | Specify whether to proceed after the current action fails by setting the parameter to either Yes or No. |
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