diff --git a/Jenkinsfile b/Jenkinsfile index 051827a..365863c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,10 @@ node('packer') { stage 'Checkout' - checkout scm + sh 'mkdir -p packer-centos-7' + dir('packer-centos-7'){ + checkout scm + } stage 'Acquire ansible-playbooks' @@ -12,8 +15,8 @@ node('packer') { stage 'Validate' + sh 'cd ../packer-centos-7' sh 'pwd' - sh 'ls' - sh '/usr/local/bin/packer validate ./packer-centos-7/shibboleth-appliance-vbox.json' + sh '/usr/local/bin/packer validate shibboleth-appliance-vbox.json' }