make sure the pipelinen AWS steps is installed. Add your user AWS credentials to Jenkins.
Make sure the user has the permission to download the file from S3.
pipleine (
agent any
stages {
stage ('S3download') {
steps {
withAWS(credentials: 'awscredentials') {
s3Download(file:'key', bucket: 'test', path:'/home/ubuntu/')
}
}
}
}
}