The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.
For a list of other such plugins, see the Pipeline Steps Reference page.
awaitDeploymentCompletion
: Wait for AWS CodeDeploy deployment completionawsIdentity
: Print and return the AWS identitycfInvalidate
: Invalidate given paths in CloudFront distributioncfnCreateChangeSet
: Create CloudFormation change setcfnDelete
: Delete CloudFormation stackcfnDeleteStackSet
: Delete CloudFormation Stack SetcfnDescribe
: Describe outputs of CloudFormation stackcfnExecuteChangeSet
: Execute CloudFormation change setcfnExports
: Describe CloudFormation global exportscfnUpdate
: Create or Update CloudFormation stackcfnUpdateStackSet
: Create or Update CloudFormation Stack SetcfnValidate
: Validate CloudFormation templatecreateDeployment
: Deploys an application revision through the specified deployment group (AWS CodeDeploy).deployAPI
: Deploy the given API Gateway APIebCreateApplication
: Creates a new Elastic Beanstalk applicationebCreateApplicationVersion
: Creates a new version for an elastic beanstalk applicationebCreateConfigurationTemplate
: Creates a new configuration template for an elastic beanstalk applicationebCreateEnvironment
: Creates a new Elastic Beanstalk environmentebSwapEnvironmentCNAMEs
: Swaps the CNAMEs of two elastic beanstalk environments.ebWaitOnEnvironmentHealth
: Waits until the specified environment application becomes availableebWaitOnEnvironmentStatus
: Waits until the specified environment becomes availableec2ShareAmi
: Share an AMI with other accountsecrDeleteImage
: Delete ecr imagesecrListImages
: List ECR ImagesecrLogin
: Create and return the ECR login stringecrSetRepositoryPolicy
: Set ECR Repository PolicyelbDeregisterInstance
: Deregisters the specified instances from the specified load balancer.elbIsInstanceDeregistered
: Registers the specified instances from the specified load balancer.elbIsInstanceRegistered
: Registers the specified instances from the specified load balancer.elbRegisterInstance
: Registers the specified instances from the specified load balancer.invokeLambda
: Invoke a given Lambda functionlambdaVersionCleanup
: Cleanup old lambda versionslistAWSAccounts
: List all AWS accounts of the organizations3Copy
: Copy file between S3 bucketss3Delete
: Delete file from S3s3DoesObjectExist
: Check if object exists in S3s3Download
: Copy file from S3s3FindFiles
: Find files in S3s3PresignURL
: Presign file in S3s3Upload
: Copy file to S3setAccountAlias
: Set the AWS account aliassnsPublish
: Publish notification to SNSupdateIdP
: Update thirdparty Identity ProviderupdateTrustPolicy
: Update trust policy of IAM roleswithAWS
: set AWS settings for nested blockcfInvalidate
: Invalidate given paths in CloudFront distributiondistribution : String
paths : Array / List of String
waitForCompletion : boolean
(optional)
cfnCreateChangeSet
: Create CloudFormation change setchangeSet : String
stack : String
create : boolean
(optional)
file : String
(optional)
keepParams : Array / List of String
(optional)
notificationARNs : Array / List of String
(optional)
onFailure : String
(optional)
params : Object
(optional)
paramsFile : String
(optional)
pollInterval : long
(optional)
roleArn : String
(optional)
rollbackTimeoutInMinutes : int
(optional)
rollbackTriggers : Array / List of String
(optional)
tags : Array / List of String
(optional)
tagsFile : String
(optional)
template : String
(optional)
timeoutInMinutes : long
(optional)
timeoutInSeconds : long
(optional)
url : String
(optional)
cfnDelete
: Delete CloudFormation stackDelete Cloudformation Templates
stack : String
clientRequestToken : String
(optional)
pollInterval : long
(optional)
retainResources : Array / List of String
(optional)
roleArn : String
(optional)
timeoutInMinutes : long
(optional)
cfnExecuteChangeSet
: Execute CloudFormation change setchangeSet : String
stack : String
pollInterval : long
(optional)
timeoutInMinutes : long
(optional)
timeoutInSeconds : long
(optional)
cfnUpdate
: Create or Update CloudFormation stackstack : String
create : boolean
(optional)
enableTerminationProtection : boolean
(optional)
file : String
(optional)
keepParams : Array / List of String
(optional)
notificationARNs : Array / List of String
(optional)
onFailure : String
(optional)
params : Object
(optional)
paramsFile : String
(optional)
pollInterval : long
(optional)
roleArn : String
(optional)
rollbackTimeoutInMinutes : int
(optional)
rollbackTriggers : Array / List of String
(optional)
tags : Array / List of String
(optional)
tagsFile : String
(optional)
template : String
(optional)
timeoutInMinutes : long
(optional)
timeoutInSeconds : long
(optional)
url : String
(optional)
cfnUpdateStackSet
: Create or Update CloudFormation Stack SetstackSet : String
administratorRoleArn : String
(optional)
batchingOptions
(optional)
regions : boolean
create : boolean
(optional)
executionRoleName : String
(optional)
file : String
(optional)
keepParams : Array / List of String
(optional)
notificationARNs : Array / List of String
(optional)
onFailure : String
(optional)
operationPreferences
(optional)
failureToleranceCount : int
(optional)
failureTolerancePercentage : int
(optional)
maxConcurrentCount : int
(optional)
maxConcurrentPercentage : int
(optional)
regionOrder : Array / List of String
(optional)
params : Object
(optional)
paramsFile : String
(optional)
pollInterval : long
(optional)
rollbackTimeoutInMinutes : int
(optional)
rollbackTriggers : Array / List of String
(optional)
tags : Array / List of String
(optional)
tagsFile : String
(optional)
template : String
(optional)
timeoutInMinutes : long
(optional)
timeoutInSeconds : long
(optional)
url : String
(optional)
createDeployment
: Deploys an application revision through the specified deployment group (AWS CodeDeploy).applicationName : String
(optional)
deploymentConfigName : String
(optional)
deploymentGroupName : String
(optional)
description : String
(optional)
fileExistsBehavior : String
(optional)
gitHubCommitId : String
(optional)
gitHubRepository : String
(optional)
ignoreApplicationStopFailures : boolean
(optional)
s3Bucket : String
(optional)
s3BundleType : String
(optional)
s3Key : String
(optional)
waitForCompletion : boolean
(optional)
deployAPI
: Deploy the given API Gateway APIapi : String
stage : String
description : String
(optional)
variables : Array / List of String
(optional)
ebCreateApplication
: Creates a new Elastic Beanstalk applicationapplicationName : String
description : String
(optional)
ebCreateApplicationVersion
: Creates a new version for an elastic beanstalk applicationapplicationName : String
versionLabel : String
s3Bucket : String
s3Key : String
description : String
(optional)
ebCreateConfigurationTemplate
: Creates a new configuration template for an elastic beanstalk applicationapplicationName : String
templateName : String
description : String
(optional)
environmentId : String
(optional)
solutionStackName : String
(optional)
sourceConfigurationApplication : String
(optional)
sourceConfigurationTemplate : String
(optional)
ebCreateEnvironment
: Creates a new Elastic Beanstalk environmentapplicationName : String
environmentName : String
description : String
(optional)
solutionStackName : String
(optional)
templateName : String
(optional)
updateOnExisting : boolean
(optional)
versionLabel : String
(optional)
ebSwapEnvironmentCNAMEs
: Swaps the CNAMEs of two elastic beanstalk environments.destinationEnvironmentId : String
(optional)
destinationEnvironmentName : String
(optional)
sourceEnvironmentId : String
(optional)
sourceEnvironmentName : String
(optional)
ebWaitOnEnvironmentHealth
: Waits until the specified environment application becomes availableapplicationName : String
environmentName : String
health : String
(optional)
stabilityThreshold : int
(optional)
ebWaitOnEnvironmentStatus
: Waits until the specified environment becomes availableapplicationName : String
environmentName : String
status : String
(optional)
ec2ShareAmi
: Share an AMI with other accountsaccountIds : Array / List of String
(optional)
amiId : String
(optional)
ecrDeleteImage
: Delete ecr imagesimageIds
(optional)
imageDigest : String
(optional)
imageTag : String
(optional)
registryId : String
(optional)
repositoryName : String
(optional)
ecrListImages
: List ECR Imagesfilter
(optional)
tagStatus : String
(optional)
registryId : String
(optional)
repositoryName : String
(optional)
ecrLogin
: Create and return the ECR login stringemail : boolean
(optional)
registryIds : Array / List of String
(optional)
ecrSetRepositoryPolicy
: Set ECR Repository PolicypolicyText : String
(optional)
registryId : String
(optional)
repositoryName : String
(optional)
elbDeregisterInstance
: Deregisters the specified instances from the specified load balancer.targetGroupARN : String
(optional)
instanceID : String
(optional)
port : int
(optional)
elbIsInstanceDeregistered
: Registers the specified instances from the specified load balancer.targetGroupARN : String
(optional)
instanceID : String
(optional)
port : int
(optional)
elbIsInstanceRegistered
: Registers the specified instances from the specified load balancer.targetGroupARN : String
(optional)
instanceID : String
(optional)
port : int
(optional)
elbRegisterInstance
: Registers the specified instances from the specified load balancer.targetGroupARN : String
(optional)
instanceID : String
(optional)
port : int
(optional)
invokeLambda
: Invoke a given Lambda functionfunctionName : String
payload : Object
(optional)
payloadAsString : String
(optional)
returnValueAsString : boolean
(optional)
lambdaVersionCleanup
: Cleanup old lambda versionsdaysAgo : int
functionName : String
(optional)
stackName : String
(optional)
s3Copy
: Copy file between S3 bucketsCopy file between S3 buckets.
fromBucket : String
fromPath : String
toBucket : String
toPath : String
pathStyleAccessEnabled : boolean
(optional)
payloadSigningEnabled : boolean
(optional)
acl
(optional)
Canned ACL to add to the new file.
Private
, PublicRead
, PublicReadWrite
, AuthenticatedRead
, LogDeliveryWrite
, BucketOwnerRead
, BucketOwnerFullControl
, AwsExecRead
cacheControl : String
(optional)
contentDisposition : String
(optional)
contentType : String
(optional)
kmsId : String
(optional)
metadatas : Array / List of String
(optional)
sseAlgorithm : String
(optional)
s3Delete
: Delete file from S3Delete a file/folder from S3. If the path ends in a "/", then the path will be interpreted to be a folder, and all of its contents will be removed.
bucket : String
path : String
This is the path inside the bucket to delete. If this ends in a "/", then the path will be interpreted to be a folder, and all of its contents will be removed.
Do not begin with a leading "/".
pathStyleAccessEnabled : boolean
(optional)
payloadSigningEnabled : boolean
(optional)
s3DoesObjectExist
: Check if object exists in S3Check if object exists in S3 bucket.
bucket : String
path : String
pathStyleAccessEnabled : boolean
(optional)
payloadSigningEnabled : boolean
(optional)
s3Download
: Copy file from S3Download a file/folder from S3 to the local workspace. Set optional parameter force to true to overwrite any existing files in workspace. If the path ends with a /, then the complete virtual directory will be downloaded.
file : String
bucket : String
pathStyleAccessEnabled : boolean
(optional)
payloadSigningEnabled : boolean
(optional)
force : boolean
(optional)
path : String
(optional)
s3FindFiles
: Find files in S3Return a list of all of the files/folders in the bucket. If path is given, then it will be used as the root of the search. Results are returned relative to path; if path is not given, then the results will contain the full S3 path.
The following all ultimately return one item referring to "path/to/my/file.ext"; however, by limiting the scope via path, the results are different.
List every file in the bucket:
The return format is identical to that of the findFiles step. This will return an array of FileWrapper instances with the following properties:
bucket : String
pathStyleAccessEnabled : boolean
(optional)
payloadSigningEnabled : boolean
(optional)
glob : String
(optional)
This is the glob to use to match files/folders. You may use a full file name/path (for example "path/to/file.ext"), but you may also use a glob (for example, "path/t*/file.*").
If left blank, this will perform the equivalent function of "*".
To list absolutely everything, use "**".
onlyFiles : boolean
(optional)
path : String
(optional)
s3PresignURL
: Presign file in S3bucket : String
key : String
httpMethod : String
durationInSeconds : int
pathStyleAccessEnabled : boolean
(optional)
payloadSigningEnabled : boolean
(optional)
s3Upload
: Copy file to S3Upload a file/folder from the workspace to an S3 bucket. If the file parameter denotes a directory, then the complete directory (including all subfolders) will be uploaded. If text is provided, upload the text as the provided filename in the remote S3 bucket.
bucket : String
pathStyleAccessEnabled : boolean
(optional)
payloadSigningEnabled : boolean
(optional)
acl
(optional)
Canned ACL to add to the upload request.
Private
, PublicRead
, PublicReadWrite
, AuthenticatedRead
, LogDeliveryWrite
, BucketOwnerRead
, BucketOwnerFullControl
, AwsExecRead
cacheControl : String
(optional)
contentDisposition : String
(optional)
contentEncoding : String
(optional)
contentType : String
(optional)
excludePathPattern : String
(optional)
file : String
(optional)
includePathPattern : String
(optional)
kmsId : String
(optional)
metadatas : Array / List of String
(optional)
path : String
(optional)
redirectLocation : String
(optional)
sseAlgorithm : String
(optional)
tags : String
(optional)
text : String
(optional)
verbose : boolean
(optional)
workingDir : String
(optional)
setAccountAlias
: Set the AWS account aliasThe setAccountAlias
step set the given name as AWS account alias.
name : String
snsPublish
: Publish notification to SNStopicArn : String
subject : String
message : String
messageAttributes
(optional)
java.util.Map<java.lang.String, java.lang.String>
withAWS
: set AWS settings for nested blockThe withAWS
step provides authorization for the nested steps. You can provide region and profile information or let Jenkins assume a role in another or the same AWS account. You can mix all parameters in one withAWS
block.
credentials : String
(optional)
duration : int
(optional)
endpointUrl : String
(optional)
externalId : String
(optional)
federatedUserId : String
(optional)
iamMfaToken : String
(optional)
policy : String
(optional)
principalArn : String
(optional)
profile : String
(optional)
region : String
(optional)
role : String
(optional)
roleAccount : String
(optional)
roleSessionName : String
(optional)
samlAssertion : String
(optional)
useNode : boolean
(optional)
Please submit your feedback about this page through this quick form.
Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?
See existing feedback here.