Can Multiple Packages Be Installed in a Certain Sequence?
In microservice scenarios, if a Java project contains multiple modules, multiple packages will be packed for these modules at a time. In addition, these packages need to be deployed in sequence during deployment. You can perform the following operations:
- Create a code repository.
- Go to CodeArts Repo, click New Repository.
- Enter a repository name and click OK.
- Upload the Java project code to the created repository by referring to Uploading Local Code to CodeArts Repo.
- Create a build task.
- Go to CodeArts Build, click Create Task.
- On the Set Basic Information page, select the code source Repo, the created code repository, and the branch master. Select the Maven template, and click Next.
- On the Build Actions tab, retain the default build actions. For details about how to configure build actions, see Build Actions.
- After the configuration is complete, click Create and Run. After the execution is complete, you can view the generated software package in the release repository.
- Create a deployment task.
Add the action Select Deployment Source, select the build task created in the previous step and the build package uploaded to the release repository, and download the build package to the specified path on the server. For details, see Selecting a Deployment Source.
Add the action Start/Stop Spring Boot to start a specified JAR package. For details, see Starting or Stopping Spring Boot.
- Create a pipeline. Add the build and deployment tasks to the pipeline and run the pipeline.
Functions FAQs
- How Do I Use a Pipeline?
- What Are Pass Conditions?
- What Tasks Can Be Run on a Pipeline?
- Does CodeArts Pipeline Display the Execution History of Each Pipeline?
- Can Multiple Packages Be Installed in a Certain Sequence?
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.
Chatbotmore