Skip to end of metadata
Go to start of metadata

Plugin Information

View Pipeline: AWS Steps on the plugin site for more information.

This plugins adds Jenkins pipeline steps to interact with the AWS API.For Readme see: https://github.com/jenkinsci/pipeline-aws-plugin

These steps are e.g.:

  • withAWS
  • awsIdentity
  • cfInvalidate
  • s3Upload
  • s3Download
  • s3Delete
  • s3FindFiles
  • cfnValidate
  • cfnUpdate
  • cfnDelete
  • cfnDescribe
  • cfnExports
  • snsPublish
  • deployAPI
  • awaitDeploymentCompletion
  • listAWSAccounts
  • updateIdP
  • ecrLogin
  • invokeLambda

7 Comments

  1. Hey there!

    Any idea when you'll publish 1.8 ? Can't upload to the root of a s3 bucket without it (smile)

    Thank you!

  2. I'm getting SSL errors when I try to use s3Upload() or s3Download(), but s3FindFiles() works just fine. Whenever I search for this error, I just get instructions relating to self-signed certs, but that doesn't apply here as I'm talking to AWS (which should already be in the trusted certs, right?). The fact that some commands work while some don't make me wonder if it's not a problem with the cacerts after all.

    Any ideas what's going on? Jenkins 2.73.1 (Windows), Plugin version 1.18.

     

    sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    	(snip)
    Caused: sun.security.validator.ValidatorException: PKIX path building failed
    	(snip)
    Caused: javax.net.ssl.SSLHandshakeException
    	(snip)
    Caused: com.amazonaws.SdkClientException: Unable to execute HTTP request: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    	(snip)
    1. Hi, can you please make sure, you are not using a proxy that does SSL inspection? If the issue persists please raise an issue in the Jenkins issue tracker.

  3. Hello,

    I am trying to paramerize my jenkins job using groovy file with this build step as withAWS. But it is bot taking values from defined parameters. For ex- 

    withAWS(credentials:id){

    cfnupdate(stack: '${StackName}')}

    Instead of taking the dynamic value from StackName variable, it is taking the whole thing as string. It's blowing it off.. any idea ??

    Any help would be highly appreciated.

    1. You can either use 

      cfnupdate(stack: StackName)} or 

      cfnupdate(stack: "${StackName}")}

       

      There is no variable expansion in single quotes.

  4. Hey, thanks a lot sir! It works.. you made life a lot easier building this :).. I'll get back to you for understanding more functionalities as required.. thanks again :))

  5. Hello again! Hope all is good! We have been thinking to write a Jenkins job and give it to application team to upload images to S3. I have coded down the Pipeline and it is working as desired from my local. But when it comes to production Jenkins, it is not feasible because we will load groovy from Github and it expects the image path to be in the same repo. Otherway around if I dont pull groovy from scm and directly from jenkins it is still not feasible to put images to jenkins server. Is there a way to tweak it in a way that developers can upload images from therr local machines using this jenkins pipeline from jenkins server or any other way to achieve this. Any leads would be highly appreciated. Cheers!