Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Jenkins Pipeline Steps #65

Open
timnoinc opened this issue Aug 7, 2017 · 7 comments
Open

Feature Request: Jenkins Pipeline Steps #65

timnoinc opened this issue Aug 7, 2017 · 7 comments

Comments

@timnoinc
Copy link

timnoinc commented Aug 7, 2017

Hey I was trying to use this with jenkins pipeline, but I don't see any Beanstalk related steps. It would be great if those were included!

@jonasv
Copy link

jonasv commented Sep 6, 2017

+1000

@bash83
Copy link

bash83 commented Sep 8, 2017

+1

1 similar comment
@ekinsol
Copy link

ekinsol commented Sep 26, 2017

+1

@kevintighe
Copy link

kevintighe commented Nov 7, 2017

In the meantime, I was able to get this working in a pipeline script like so:

step([$class: 'AWSEBDeploymentBuilder', zeroDowntime: false,
      awsRegion: '****', applicationName: '****', environmentName: '****', 
      bucketName: ''****', rootObject: "app.zip",
      versionLabelFormat: '****', 
      versionDescriptionFormat: '****'])

@dscorpian29
Copy link

hi for the pipeline script above, has anybody tried it yet? How to passs AWS credentials in the script?

@samd2
Copy link

samd2 commented Feb 8, 2019

How to pass AWS credentials in the script?

tried to wrap the step in a withCredentials() block, and also just setting environment variables, however for some reason this wasn't working. An IAM Role on the Jenkins EC2 instance succeeded. If anyone has this all set up perfectly, please post an example. Thanks.

@cullenp
Copy link

cullenp commented Jun 13, 2020

for the love of Pete, after a good deal of trial and error I got it to work in a declarative pipeline
Here is my sanitized stage the gcs var is optional. Make sure you have proper IAM permissions for the s3 bucket and cloudformation

environment { jk_aws_id = '<JENKINS_AWS_CREDENTIAL_ID>' GIT_BRANCH_NAME = "${sh(script:'echo ${GIT_BRANCH##*/}', returnStdout: true).trim()}" } stages { stage('Saving to Elastic Beanstalk and Deploy') { environment { gcs = "${sh(script:'echo -n ${GIT_BRANCH_NAME,,}-${GIT_COMMIT:0:8}', returnStdout: true).trim()}" } when { anyOf { branch 'develop'; branch 'master' } } steps { step([$class: 'AWSEBDeploymentBuilder', credentialId: "${jk_aws_id}", awsRegion: 'us-east-1', applicationName: '<APP_NAME>', environmentName: '<ENVIRON_NAME>', rootObject: '.', includes: '**/*', excludes: '', bucketName: '<S3_BUCKET_NAME>', keyPrefix: '<S3_FOLDER_NAME>', versionLabelFormat: "$gcs", versionDescriptionFormat: "$gcs", sleepTime: '10', checkHealth: 'true', maxAttempts: '12' ]) } } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants