Skip to content

Commit 2b4427e

Browse files
William Douglasbryteise
authored andcommitted
Update Jenkinsfile to enable bridge tests
Future patches will depend on a specific bridge setup on the host so for now configure the host bridge in the Jenkinsfile. Signed-off-by: William Douglas <[email protected]>
1 parent 6e1c462 commit 2b4427e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Jenkinsfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,21 @@ pipeline{
4141
}
4242
stage ('Install dependencies') {
4343
steps {
44-
sh "sudo apt update && sudo apt install -y meson ninja-build gcc libxml2-utils xsltproc python3-docutils libglib2.0-dev libgnutls28-dev libxml2-dev libnl-3-dev libnl-route-3-dev libyajl-dev make libcurl4-gnutls-dev qemu-utils libssl-dev mtools libudev-dev libpciaccess-dev flex bison libelf-dev"
44+
sh "sudo apt update && sudo apt install -y meson ninja-build gcc libxml2-utils xsltproc python3-docutils libglib2.0-dev libgnutls28-dev libxml2-dev libnl-3-dev libnl-route-3-dev libyajl-dev make libcurl4-gnutls-dev qemu-utils libssl-dev mtools libudev-dev libpciaccess-dev flex bison libelf-dev bridge-utils procps"
4545
}
4646
}
4747
stage ('Configure') {
4848
steps {
4949
sh "meson build -D driver_ch=enabled -D driver_qemu=disabled -D driver_openvz=disabled -D driver_esx=disabled -D driver_vmware=disabled -D driver_lxc=disabled -D driver_libxl=disabled -D driver_vbox=disabled -D selinux=disabled -D system=true --prefix=/usr"
5050
}
5151
}
52+
stage ('Bridge Install') {
53+
steps {
54+
sh "sudo brctl addbr mybr0"
55+
sh "sudo ip link set mybr0 up"
56+
sh "sudo sysctl -w net.ipv4.ip_forward=1"
57+
}
58+
}
5259
stage ('Build & Install') {
5360
steps {
5461
sh "ninja -C build"

0 commit comments

Comments
 (0)