.. _validation_job_example: Example of a validation job ^^^^^^^^^^^^^^^^^^^^^^^^^^^ Below is the shell code that can be used as a build step in Jenkins in a job responsible for validating edge snap of Checkbox. .. code-block:: shell #!/bin/bash set -e set -x cat > job.yaml < JOB_ID testflinger poll $JOB_ID TEST_STATUS=$(testflinger results $JOB_ID |jq -r .test_status) echo "Test exit status: $TEST_STATUS" exit $EXITCODE