1 # Integration/Packaging macros
6 - shell: !include-raw: install-rpm.sh
9 name: install-repo-cfg-rpm
12 # shellcheck disable=SC2154
13 repo_file="${REPO_CFG_FILE_URL##*/}"
14 sudo curl -s -o /etc/yum.repos.d/"$repo_file" "$REPO_CFG_FILE_URL"
19 - shell: !include-raw: start-odl.sh
25 # Install expect to interact with Karaf shell
26 # Install nmap to check status of ODL's SSH port
27 sudo yum install -y expect nmap
28 - shell: !include-raw: test-ports-nofeature.sh
29 - shell: !include-raw: test-karaf-oxygensafe.expect
30 # Disable this test until ODLPARENT-139 is fixed
31 # - shell: !include-raw: test-rest-ok.sh
36 - shell: !include-raw: stop-odl.sh
41 - shell: !include-raw: uninstall-rpm.sh
47 sudo yum upgrade -y opendaylight
50 name: install-start-test-stop-rpm
58 name: install-start-test-stop-uninstall-rpm
60 - install-start-test-stop-rpm
64 name: installrepcfg-upgrade-start-test-stop-rpm
66 - install-repo-cfg-rpm
73 name: install-test-uninstall-rpm
76 properties-content: 'URL=/home/$USER/rpmbuild/RPMS/noarch/*.rpm'
77 # Install deps needed interactive Karaf shell tests
79 # Install expect to interact with Karaf shell
80 # Install nmap to check status of ODL's SSH port
81 sudo yum install -y expect nmap
82 - shell: !include-raw: test-rpm-deps.sh
83 - shell: !include-raw: install-rpm.sh
84 - shell: !include-raw: start-odl.sh
85 - shell: !include-raw: test-ports-nofeature.sh
86 - shell: !include-raw: test-karaf-oxygensafe.expect
87 # Disable this test until ODLPARENT-139 is fixed
88 # - shell: !include-raw: test-rest-ok.sh
89 - shell: !include-raw: stop-odl.sh
90 - shell: !include-raw: uninstall-rpm.sh
92 # Remove old host key (if exists) so future installs don't fail SSH
93 rm /home/jenkins/.ssh/known_hosts || \
94 echo "No known_hosts file to clean up, which is fine"
97 name: install-test-uninstall-deb
100 properties-content: 'PACKAGE=$WORKSPACE/packaging/packages/deb/opendaylight/*.deb'
101 # Install deps needed interactive Karaf shell tests
103 # Install expect to interact with Karaf shell
104 # Install nmap to check status of ODL's SSH port
105 sudo apt-get install -y expect nmap
106 - shell: !include-raw: test-deb-deps.sh
107 - shell: !include-raw: install-deb.sh
108 - shell: !include-raw: start-odl.sh
109 - shell: !include-raw: test-ports-nofeature.sh
110 - shell: !include-raw: test-karaf-oxygensafe.expect
111 # Disable this test until ODLPARENT-139 is fixed
112 # - shell: !include-raw: test-rest-ok.sh
113 - shell: !include-raw: stop-odl.sh
114 - shell: !include-raw: uninstall-deb.sh
116 # Remove old host key (if exists) so future installs don't fail SSH
117 rm /home/jenkins/.ssh/known_hosts || \
118 echo "No known_hosts file to clean up, which is fine"