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

Adding a New Ansible Playbook Test

Jeremy Poulin edited this page Nov 16, 2017 · 7 revisions

Test Overview

The default template is set up to run all ansible tests that live in /tests/ansible-playbooks. The structure of these tests should be a directory containing a playbook.yml that will be called when the template runs. That directory can optionally have a output directory named reports.d whose contents will be archived when the test completes.

Steps

  1. On you're local command line, clone the new repo.
$ git clone https://github.com/[github-username]/multiarch-ci-test-template
  1. Add the new ansible test to the /tests/ansible-playbooks directory.

  2. Commit and push the added test to the github.

$ git commit -am "Added new test to /tests/ansible-playbooks"
$ git push
  1. Run the test via the Jenkins UI.