Extract common RPM test builder steps to macro
[releng/builder.git] / jjb / packaging / packaging-macros.yaml
1 # Integration/Packaging macros
2 ---
3 - builder:
4     name: install-test-uninstall-rpm
5     builders:
6       - inject:
7           properties-content: 'URL=/home/$USER/rpmbuild/RPMS/noarch/*.rpm'
8       # Use *-escape to make double brace expansion work. JJB strangeness.
9       - shell: !include-raw: test-rpm-deps.sh
10       - shell: !include-raw-escape: install-rpm.sh
11       - shell: !include-raw: start-odl.sh
12       # Install deps needed interactive Karaf shell tests
13       - shell: |
14           # Install expect to interact with Karaf shell
15           # Install nmap to check status of ODL's SSH port
16           sudo yum install -y expect nmap
17       - shell: !include-raw: test-karaf.expect
18       - shell: !include-raw: stop-odl.sh
19       - shell: !include-raw: uninstall-rpm.sh
20       - shell: |
21           # Remove old host key so future installs don't fail to SSH
22           rm /home/jenkins/.ssh/known_hosts