Skip to content

aliyun/alibabacloud-package-deployment-pipeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Features

This plugins adds Jenkins pipeline steps to interact with the Aliyun OSS and OOS API.

Primary/Agent setups

This plugin is not optimized to setups with a primary and multiple agents. Only steps that touch the workspace are executed on the agents while the rest is executed on the master.

For the best experience make sure that primary and agents have the same global configuration of AK/SK and networking capabilities.

Usage / Steps

ossUploadAndOosExec

Upload built project to OSS and execution OOS template download OSS file to smartly deploy on ECS instances.

executeId = ossUploadAndOosExec(batchNumber: 3, mode: 'FailurePause', bucket: 'testBucket', destinationDir: '/root/test.zip', invokeScript: '', localPath: '/', objectName: 'test.zip', pausePolicy: 'EveryBatchPause', region: 'cn-hangzhou', resourceId: 'asg-bp15XXXXX', resourceType: 'ESS')

oosStatusQuery

Query OOS template task status by OSS template task id.

oosStatusQuery(executeId: "exec-XXXXXXXXX", region: 'cn-hangzhou')

oosExecuteNotify

Oos template pause task execution next step,like Approve or Cancelled.

oosExecuteNotify(executeId: "exec-XXXXXXXXX", region: 'cn-hangzhou', notifyType: "Approve")

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published