All Products
Search
Document Center

CloudOps Orchestration Service:ACS::CICD::SoftwarePackageBuild

Last Updated:Oct 09, 2024

Action

ACS::CICD::SoftwarePackageBuild

Description

Builds a software package such as a JAR package and uploads the software package to an Object Storage Service (OSS) bucket. This operation can be performed only on Linux Elastic Compute Service (ECS) instances.

Syntax

Action: ACS::CICD::SoftwarePackageBuild
Properties:
  regionId: String
  codeSource: String
  codeSourceUrl: String
  buildType: String
  instanceId: String
  zoneId: String
  ecsInstanceType: String
  imageId: String
  allocatePublicIP: Boolean
  buildScript: String
  packageDir: String
  buildMaterialName: String
  bucketName: String
  bucketDir: String

Attributes

Attribute

Description

Type

Required

Default value

Limit

regionId

The region ID.

String

No

{{ ACS::RegionId }}

codeSource

The code source.

String

Yes

codeSourceUrl

The URL of the code source.

String

Yes

buildType

The build type.

String

No

ExistingEcs

instanceId

The ID of the ECS instance.

String

No

""

zoneId

The zone ID.

String

No

""

ecsInstanceType

The type of the ECS instance.

String

No

ecs.g6.large

imageId

The image ID.

String

No

centos_7

allocatePublicIP

Specifies whether to assign a public IP address.

Boolean

No

True

buildScript

The command to be run to build the software package.

String

No

# maven build default command
mvn -B clean package -Dmaven.test.skip=true -Dautoconfig.skip

# gradle build default command
# ./gradlew build

# ant build default command
# ant

The command can be up to 16,384 bytes in length.

packageDir

The path of the package.

String

No

target/

buildMaterialName

The name of the build output.

String

No

buildMaterial-{{ACS::ExecutionId}}

bucketName

The name of the OSS bucket to which you want to upload the software package.

String

Yes

bucketDir

The directory of the OSS bucket to which you want to upload the software package.

String

No

oos_build_materials/{{ACS::CurrentDate}}

Output

Output item

Description

Type

bucketName

String

objectName

String

References

For more information, see ACS::CICD::SoftwarePackageBuild.yml at GitHub.