github.com/jaylevin/jenkins-library@v1.230.4/resources/metadata/containerExecuteStructureTests.yaml (about) 1 metadata: 2 name: containerExecuteStructureTests 3 description: In this step [Container Structure Tests](https://github.com/GoogleContainerTools/container-structure-test) are executed. 4 longDescription: | 5 This testing framework allows you to execute different test types against a Docker container, for example: 6 - Command tests (only if a Docker Deamon is available) 7 - File existence tests 8 - File content tests 9 - Metadata test 10 spec: 11 inputs: 12 params: 13 - name: pullImage 14 type: bool 15 description: Force a pull of the tested image before running tests. Only relevant for testDriver 'docker'. 16 scope: 17 - STEPS 18 - STAGES 19 - PARAMETERS 20 - name: testConfiguration 21 type: string 22 description: Container structure test configuration in yml or json format. You can pass a pattern in order to execute multiple tests. 23 scope: 24 - STEPS 25 - STAGES 26 - PARAMETERS 27 mandatory: true 28 - name: testDriver 29 type: string 30 description: Container structure test driver to be used for testing, please see https://github.com/GoogleContainerTools/container-structure-test for details. 31 scope: 32 - STEPS 33 - STAGES 34 - PARAMETERS 35 - name: testImage 36 type: string 37 description: Image to be tested 38 scope: 39 - STEPS 40 - STAGES 41 - PARAMETERS 42 mandatory: true 43 - name: testReportFilePath 44 type: string 45 description: Path and name of the test report which will be generated 46 scope: 47 - STEPS 48 - STAGES 49 - PARAMETERS 50 default: cst-report.json 51 containers: 52 - image: ppiper/container-structure-test 53 command: 54 - /busybox/tail -f /dev/null 55 shell: /busybox/sh 56 options: 57 - name: -u 58 value: "0" 59 - name: --entrypoint 60 value: ''