Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
Fixing syntax error with test_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypoulz committed Feb 8, 2018
1 parent 4955bd4 commit 6035b2a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,26 +93,26 @@ TestUtils.runParallelMultiArchTest(
// TODO insert test body here
stage ('Run Test') {
if (config.runOnSlave) {
sh "ansible-playbook -i 'localhost,' -c local ${TEST_DIR}/ansible-playbooks/*/playbook.yml"
sh "ansible-playbook -i 'localhost,' -c local ${params.TEST_DIR}/ansible-playbooks/*/playbook.yml"
// TODO insert logic for calling script(s) here
}
else {
sh "ansible-playbook -i '${host.inventory}' ${TEST_DIR}/ansible-playbooks/*/playbook.yml"
sh "ansible-playbook -i '${host.inventory}' ${params.TEST_DIR}/ansible-playbooks/*/playbook.yml"
// TODO insert logic for all script(s) remotely here
}
}

stage ('Archive Test Output') {
try {
archiveArtifacts allowEmptyArchive: true, artifacts: "${TEST_DIR}/ansible-playbooks/**/artifacts/*", fingerprint: true
junit "${TEST_DIR}/ansible-playbooks/**/reports/*.xml"
archiveArtifacts allowEmptyArchive: true, artifacts: "${params.TEST_DIR}/ansible-playbooks/**/artifacts/*", fingerprint: true
junit "${params.TEST_DIR}/ansible-playbooks/**/reports/*.xml"
}
catch (e) {
// We don't care if this step fails
}
try {
archiveArtifacts allowEmptyArchive: true, artifacts: "${TEST_DIR}/scripts/**/artifacts/*", fingerprint: true
junit "${TEST_DIR}/scripts/**/reports/*.xml"
archiveArtifacts allowEmptyArchive: true, artifacts: "${params.TEST_DIR}/scripts/**/artifacts/*", fingerprint: true
junit "${params.TEST_DIR}/scripts/**/reports/*.xml"
}
catch (e) {
// We don't care if this step fails
Expand Down

0 comments on commit 6035b2a

Please sign in to comment.