Build
Call the Build extension to use CodeArts Build capabilities.
Adding the Extension with GUI
Add the Build extension when you orchestrate a pipeline. Set parameters as shown in Table 1.
Parameter |
Description |
---|---|
Name |
Extension name, which can be customized.
|
Select Task |
Select a build task whose code source is pipeline or the same repository as the pipeline you are configuring. |
Repository |
Select the corresponding code repository. |
Artifact Identifier |
Identifier of each build artifact. For example, if the ID of the build task is "build_job" and the artifact identifier is "demo", use "${{jobs.build_job.artifacts.demo}}" to obtain artifact information in subsequent tasks. |
Adding the Extension with YAML
Add the Build extension when you orchestrate a pipeline. Configure the YAML syntax as follows:
- Build
Call the Build extension to use CodeArts Build capabilities.
uses: CodeArtsBuild with: jobId: 878b4d13cb284d9e8f33f988a902f57c artifactIdentifier: my_pkg customParam: value
- jobId: ID of the build task. To obtain the ID, copy the 32 digits and letters at the end of the browser URL on the build task details page.
- artifactIdentifier: Build artifact identifier.
- customParam: Parameter value defined in the build task. There may be zero to multiple values.
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