Merge "Chore: Turn on SBOM for VFC"
[ci-management.git] / jjb / integration / integration-macros.yaml
1 ---
2 - parameter:
3     name: integration-test-plan
4     parameters:
5       - string:
6           name: TESTPLAN
7           default: '{test-plan}'
8           description: 'General test plan we will run unless stream-specific one is found'
9
10 - parameter:
11     name: integration-test-options
12     parameters:
13       - string:
14           name: TESTOPTIONS
15           default: '{test-options}'
16           description: 'Robot command options'
17
18 - parameter:
19     name: html-publisher-dir
20     parameters:
21       - string:
22           name: HTMLDIR
23           default: '{html-dir}'
24           description: 'Directory location to be used by HTML publisher plugin'
25
26 - parameter:
27     name: html-publisher-files
28     parameters:
29       - string:
30           name: HTMLFILES
31           default: '{html-files}'
32           description: 'File name to be used by HTML publisher plugin to produce the report'
33
34 - builder:
35     name: integration-install-robotframework
36     builders:
37       - shell:
38           !include-raw:
39           - include-raw-integration-install-robotframework.sh
40
41 - builder:
42     name: integration-install-robotframework-py3
43     builders:
44       - shell:
45           !include-raw:
46           - include-raw-integration-install-robotframework-py3.sh
47
48 - builder:
49     name: integration-run-test
50     builders:
51       - shell: |
52           git clone https://gerrit.onap.org/r/ci-management /tmp/ci-management
53           cp /tmp/ci-management/jjb/integration/*csit.sh ${WORKSPACE}
54           ${WORKSPACE}/run-csit.sh ${TESTPLAN} ${TESTOPTIONS}
55
56 - builder:
57     name: integration-run-project-test
58     builders:
59       - shell: "${WORKSPACE}/csit/run-project-csit.sh ${TESTOPTIONS}"
60
61
62 - builder:
63       name: integration-run-project-k8s-test
64       builders:
65           - shell: "${WORKSPACE}/csit/run-k8s-csit.sh install ${TESTOPTIONS}"
66
67 - builder:
68     name: integration-autorelease-fix-relativepaths
69     builders:
70       - shell: "${WORKSPACE}/autorelease/scripts/fix-relativepaths.sh"
71
72 - builder:
73     name: integration-autorelease-set-version
74     builders:
75       - shell: "${WORKSPACE}/autorelease/scripts/set-version.sh"
76
77 - builder:
78     name: integration-install-vagrant
79     builders:
80       - shell: |
81           #!/bin/bash
82           set -ex # Fail build if any setup step fails
83           sudo add-apt-repository --yes ppa:tiagohillebrandt/vagrant
84           sudo apt update
85           sudo apt --yes install libxslt-dev libxml2-dev libvirt-dev zlib1g-dev ruby-dev vagrant
86           vagrant plugin install vagrant-libvirt
87           vagrant plugin install vagrant-disksize
88           vagrant plugin install vagrant-sshfs
89           vagrant plugin install vagrant-reload
90           mkdir -p ~/.ssh
91
92 - builder:
93     name: integration-docker-compose-logs
94     builders:
95       - shell: !include-raw: shell/docker-compose-logs.sh
96
97 - publisher:
98     name: integration-robot
99     publishers:
100       - robot:
101           output-path: 'archives'
102           output-xml: '**/output.xml'
103           report-html: '**/report.html'
104           log-html: '**/log.html'
105           other-files: ''
106           unstable-threshold: '{unstable-if}'
107           pass-threshold: '{pass-if}'
108           only-critical: false
109
110 - publisher:
111     name: integration-project-robot
112     publishers:
113       - robot:
114           output-path: 'csit/archives'
115           output-xml: '**/output.xml'
116           report-html: '**/report.html'
117           log-html: '**/log.html'
118           other-files: ''
119           unstable-threshold: '{unstable-if}'
120           pass-threshold: '{pass-if}'
121           only-critical: false
122
123 - publisher:
124     name: integration-docker-compose-logs
125     publishers:
126       - postbuildscript:
127           builders:
128             - role: BOTH
129               build-on:
130                 - FAILURE
131                 - SUCCESS
132                 - UNSTABLE
133               build-steps:
134                 - integration-docker-compose-logs