Skip to content

Commit

Permalink
working on testing pipline step
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelson Roberts committed Dec 20, 2016
1 parent 3e310f2 commit 5fdcae1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ stage('validate') {
}
stage('build') {
node {
packer 'build -color=false -var-file=us-west-1.json packer_ami.json | tee packer_ami.log'
// packer 'build -color=false -var-file=us-west-1.json packer_ami.json | tee packer_ami.log'
}
}

Expand Down Expand Up @@ -40,8 +40,14 @@ stage('tag') {

stage('test') {
node {
aws_tag (
resources: ami_id(),
tags: "\
'Key=state,Value=testing' \
region: 'us-west-1'
)
sh "ssh-keygen -q -t rsa -f jenkins_testing -N ''"
terraform apply "-var 'key_name=jenkins-testing' -var 'public_key_path=jenkins_tesing.pub' -var 'aws_ami=${ami_id()}'"
terraform "apply -var key_name=jenkins-testing -var public_key_path=jenkins_tesing.pub -var aws_ami=${ami_id()}"
}
}
Expand Down

0 comments on commit 5fdcae1

Please sign in to comment.