This plugin used to publish to Alibabacloud EDAS Application as a Post Build step.
Alibabacloud credentials are needed in the System Configuration.
Config Alibabacloud credentials in with Alibaba Cloud Credentials
.
Chose Alibaba Cloud Credentials
and enter Access Key ID
and Secret Access Key
.
Ping EDAS
to check after finishing the configuration.
Post-build Actions
and choose Deploy to EDAS
,and Add
configuration according to the specific scenario;
Name | Description |
---|---|
EDAS ECS Application | publish to EDAS ECS application |
Create EDAS ECS Application | create and publish to EDAS ECS application |
EDAS K8s Application | publish to EDAS K8s application |
Create EDAS K8s Application | create and publish to EDAS K8s application |
The pipeline script can be generated by snippet generator.
job('edas') {
publishers {
edasClient {
deployApplication('', '', '', '', '')
}
}
}
The methods supported list below:
void deployApplication(
String namespace,
String credentialId,
String group,
String appId,
String targetObject);
void deployApplication(
String namespace,
String credentialId,
String group,
String appId,
String targetObject,
String versionLabelFormat,
String versionDescriptionFormat,
String batch,
String batchWaitTime,
String releaseType);
void insertApplication(
String namespace,
String credentialId,
String applicationName,
String packageType,
String clusterId,
String targetObject,
String ecuInfo);
void insertApplication(
String namespace,
String credentialId,
String applicationName,
String packageType,
String clusterId,
String targetObject,
String ecuInfo,
String versionLabelFormat,
String versionDescriptionFormat,
String buildPackId,
String healthCheckUrl);
void deployK8sApplication(
String namespace,
String credentialId,
String appId,
String targetObject,
Boolean image);
void deployK8sApplication(
String namespace,
String credentialId,
String appId,
String targetObject,
Boolean image,
String edasContainerVersion,
String webContainer,
String jdk,
String versionLabelFormat,
String envs,
String startupCommand,
String args,
String cpuLimit,
String memoryLimit,
String cpuRequest,
String memoryRequest,
String replicas,
String postStart,
String preStop,
String readiness,
String liveness,
String updateStrategy);
void insertK8sApplication(
String namespace,
String credentialId,
String applicationName,
String packageType,
String clusterId,
String targetObject,
String k8sNamespace,
String jdk);
void insertK8sApplication(
String namespace,
String credentialId,
String applicationName,
String packageType,
String clusterId,
String targetObject,
String k8sNamespace,
String jdk,
String descFormat,
String edasContainerVersion,
String webContainer,
String versionLabelFormat,
String envs,
String startupCommand,
String args,
String cpuLimit,
String memoryLimit,
String cpuRequest,
String memoryRequest,
String replicas,
String postStart,
String preStop,
String readiness,
String liveness);