Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pipeline {
- agent {
- label 'agent'
- }
- tools {
- terraform 'Terraform'
- }
- stages {
- stage('Test installation') {
- steps {
- sh 'terraform --version'
- sh 'ansible --version'
- }
- }
- stage('Test credentials') {
- steps {
- withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', credentialsId: 'AWS']])
- {
- sh 'env|grep AWS'
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement