diff --git a/Jenkinsfile b/Jenkinsfile index 1aa1ccb..03e2c36 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,8 +4,11 @@ node('packer') { stage 'Acquire ansible-playbooks' - git([ url: "https://github.internet2.edu/docker/ansible-playbooks.git", - credentialsId: "jenkins-github-access-token" ]) + sh 'mkdir -p ansible-playbooks' + dir('ansible-plyabooks'){ + git([ url: "https://github.internet2.edu/docker/ansible-playbooks.git", + credentialsId: "jenkins-github-access-token" ]) + } sh 'pwd' sh 'ls' @@ -14,12 +17,16 @@ node('packer') { // Get the packer-centos-7 repo - checkout scm - - stage 'Validate' + sh 'mkdir -p packer-centos-7' + dir('packer-centos-7'){ + checkout scm + } sh 'pwd' sh 'ls' + + stage 'Validate' + sh '/usr/local/bin/packer validate ./shibboleth-appliance-vbox.json' }