Help Center> CodeArts Pipeline> FAQs> Functions> Can Multiple Packages Be Installed in a Certain Sequence?
Updated on 2023-11-14 GMT+08:00

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:

  1. Create a code repository.
    1. Go to CodeArts Repo, click New Repository.
    2. Enter a repository name and click OK.
    3. Upload the Java project code to the created repository by referring to Uploading Local Code to CodeArts Repo.
  2. Create a build task.
    1. Go to CodeArts Build, click Create Task.
    2. 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.
    3. On the Build Actions tab, retain the default build actions. For details about how to configure build actions, see Build Actions.
    4. 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.
  3. 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.

  4. Create a pipeline. Add the build and deployment tasks to the pipeline and run the pipeline.

Functions FAQs

more