How to load AWS credentials in Jenkins job DSL?

How to load AWS credentials in Jenkins job DSL?

https://stackoverflow.com/questions/45279034/how-to-load-aws-credentials-in-jenkins-job-dsl


Related discussions:

Does anyone know the answer? I try to setup AWS credentials in Jenkins job DSL but I don’t get it to work.

Where is jenkins hosted? If its on an ec2 instance you can just give that instance a role rather than providing credentials

Just found the answer myself (see Link). :slight_smile:

You should give Miguel credit and mark that as the accepted answer over on SO.

However, I agree overwhelmingly with /u/IAmLars4824 - use an instance role if you can.

Well, I AM Miguel. :wink:

Lmao.

Miguel, I’m unable to re-use your code with No signature of method error, did you imported some external classes?

did this with dsl configure blocks instead