-
Notifications
You must be signed in to change notification settings - Fork 9
Adding a New Script Test
Important The default template will not run scripts by default. This is a feature planned for a future release.
When it is released, it will work roughly as follows:
The default template will set up to run be able to run all scripts that live in /tests/scripts
. The structure of these tests should be a directory containing a test.sh
that will be called when the script runs. The test directory can optionally have a output directory named artifacts
whose contents will be archived when the test completes.
- On you're local command line, clone the new repo.
$ git clone https://github.com/[github-username]/multiarch-ci-test-template
-
Add the new script test to the
/tests/scripts
directory. -
Commit and push the added test to the github.
$ git commit -am "Added new test to /tests/scripts"
$ git push
- Run the test via the Jenkins UI.
Most tests have some sort of output they'd like to save. For the test template, we set it up so that anything under the following structure will be archived when the test completes:
/tests/scripts/[your-test-name]/artifacts
Somes tests have output junit results xml. For the test template, we set it up so that any xml file under the following structure will be reported as junit xml when the test completes:
/tests/scripts/[your-test-name]/reports