Merge "Clarify log message to not look like a failure"
[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       # Install deps needed interactive Karaf shell tests
9       - shell: |
10           # Install expect to interact with Karaf shell
11           # Install nmap to check status of ODL's SSH port
12           sudo yum install -y expect nmap
13       - shell: !include-raw: test-rpm-deps.sh
14       - shell: !include-raw: install-rpm.sh
15       - shell: !include-raw: start-odl.sh
16       - shell: !include-raw: test-ports-nofeature.sh
17       - shell: !include-raw: test-karaf-oxygensafe.expect
18       # Disable this test until ODLPARENT-139 is fixed
19       # - shell: !include-raw: test-rest-ok.sh
20       - shell: !include-raw: stop-odl.sh
21       - shell: !include-raw: uninstall-rpm.sh
22       - shell: |
23           # Remove old host key (if exists) so future installs don't fail SSH
24           rm /home/jenkins/.ssh/known_hosts || \
25             echo "No known_hosts file to clean up, which is fine"
26
27 - builder:
28     name: install-test-uninstall-deb
29     builders:
30       - inject:
31           properties-content: 'PACKAGE=$WORKSPACE/packaging/packages/deb/opendaylight/*.deb'
32       # Install deps needed interactive Karaf shell tests
33       - shell: |
34           # Install expect to interact with Karaf shell
35           # Install nmap to check status of ODL's SSH port
36           sudo apt-get install -y expect nmap
37       - shell: !include-raw: test-deb-deps.sh
38       - shell: !include-raw: install-deb.sh
39       - shell: !include-raw: start-odl.sh
40       - shell: !include-raw: test-ports-nofeature.sh
41       - shell: !include-raw: test-karaf-oxygensafe.expect
42       # Disable this test until ODLPARENT-139 is fixed
43       # - shell: !include-raw: test-rest-ok.sh
44       - shell: !include-raw: stop-odl.sh
45       - shell: !include-raw: uninstall-deb.sh
46       - shell: |
47           # Remove old host key (if exists) so future installs don't fail SSH
48           rm /home/jenkins/.ssh/known_hosts || \
49             echo "No known_hosts file to clean up, which is fine"