diff --git a/Jenkinsfile b/Jenkinsfile index 795b46b..7dab0cd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,23 +4,17 @@ node('packer') { stage 'Acquire ansible-playbooks' - sh 'mkdir -p ansible-playbooks' - dir('ansible-playbooks'){ - git([ url: "https://github.internet2.edu/docker/ansible-playbooks.git", + git([ url: "https://github.internet2.edu/docker/ansible-playbooks.git", credentialsId: "jenkins-github-access-token" ]) - } - sh 'pwd' - sh 'ls' + sh 'pwd' + sh 'ls' stage 'Checkout' // Get the packer-centos-7 repo - sh 'mkdir -p packer-centos-7' - dir('packer-centos-7'){ - checkout scm - } + checkout scm sh 'pwd' sh 'ls'