test jenkins cloud setup
@@ -15,6 +15,20 @@ pipeline {
stages {
+ stage('CloudSetup') {
+ steps {
+ withAWS(region:'eu-west-1', credentials:'IDofAwsCredentialsDev') {
+ def response = cfnValidate(file:'cia-dist-cloudformation/src/main/resources/cia-dist-cloudformation.json')
+ echo "template description: ${response.description}"
+
+ // def createResponse = cfnUpdate(stack:'my-stack', file:'cia-dist-cloudformation/src/main/resources/cia-dist-cloudformation.json', params:['WebServerInstanceType=t4g.xlarge'], pollInterval:1000)
+ // echo "Cloudformation launch: ${createResponse.description}"
+ // WebServerAmi
+
+ }
+ }
+ }
+
stage('Build') {
steps {
sh "git clean -x -f"
