EDAS

ID: alibabacloud-edas

Alibabacloud EDAS Publisher plugin

This plugin used to publish to Alibabacloud EDAS Application as a Post Build step.

Usage

Alibabacloud credentials are needed in the System Configuration.

Configure global credentials

Config Alibabacloud credentials in with Alibaba Cloud Credentials.

Config-1 Chose Alibaba Cloud Credentials and enter Access Key ID and Secret Access Key. Config-2

Ping EDAS to check after finishing the configuration.

FreeStyle job usage

Post-build Actions and choose Deploy to EDAS,and Add configuration according to the specific scenario;

deploy_type

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

Pipeline usage

pipeline The pipeline script can be generated by snippet generator. snippet_generator

Job-dsl usage

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);
ArchivesGet past versions
Version: 1.0.0
Released:
Requires Jenkins 2.190.1
Installs: 7
Labels
This plugin has no labels
Maintainers
Li Weijun
Help us improve this page!
To propose a change submit a pull request to the plugin page on GitHub.