mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-01 17:35:19 +00:00
build: Move Jenkins workers over to jammy
Fixes: #3862 Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
87c0791d53
commit
f8f0b40e94
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@ -56,7 +56,7 @@ pipeline{
|
|||||||
stage ('Build') {
|
stage ('Build') {
|
||||||
parallel {
|
parallel {
|
||||||
stage ('Worker build') {
|
stage ('Worker build') {
|
||||||
agent { node { label 'focal' } }
|
agent { node { label 'jammy' } }
|
||||||
when {
|
when {
|
||||||
beforeAgent true
|
beforeAgent true
|
||||||
expression {
|
expression {
|
||||||
@ -132,7 +132,7 @@ pipeline{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage ('Worker build (musl)') {
|
stage ('Worker build (musl)') {
|
||||||
agent { node { label 'focal' } }
|
agent { node { label 'jammy' } }
|
||||||
when {
|
when {
|
||||||
beforeAgent true
|
beforeAgent true
|
||||||
expression {
|
expression {
|
||||||
@ -249,7 +249,7 @@ pipeline{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage ('Worker build - Windows guest') {
|
stage ('Worker build - Windows guest') {
|
||||||
agent { node { label 'focal' } }
|
agent { node { label 'jammy' } }
|
||||||
when {
|
when {
|
||||||
beforeAgent true
|
beforeAgent true
|
||||||
expression {
|
expression {
|
||||||
@ -295,7 +295,7 @@ pipeline{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage ('Worker build - Live Migration') {
|
stage ('Worker build - Live Migration') {
|
||||||
agent { node { label 'focal-small' } }
|
agent { node { label 'jammy-small' } }
|
||||||
when {
|
when {
|
||||||
beforeAgent true
|
beforeAgent true
|
||||||
expression {
|
expression {
|
||||||
@ -400,7 +400,7 @@ def cancelPreviousBuilds() {
|
|||||||
def installAzureCli() {
|
def installAzureCli() {
|
||||||
sh "sudo apt install -y ca-certificates curl apt-transport-https lsb-release gnupg"
|
sh "sudo apt install -y ca-certificates curl apt-transport-https lsb-release gnupg"
|
||||||
sh "curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null"
|
sh "curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null"
|
||||||
sh "echo \"deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ focal main\" | sudo tee /etc/apt/sources.list.d/azure-cli.list"
|
sh "echo \"deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ jammy main\" | sudo tee /etc/apt/sources.list.d/azure-cli.list"
|
||||||
sh "sudo apt update"
|
sh "sudo apt update"
|
||||||
sh "sudo apt install -y azure-cli"
|
sh "sudo apt install -y azure-cli"
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
sudo apt install -y libncurses-dev gawk flex bison openssl libssl-dev dkms libelf-dev libudev-dev libpci-dev libiberty-dev autoconf git make dpkg-dev libmnl-dev pkg-config
|
sudo apt install -y libncurses-dev gawk flex bison openssl libssl-dev dkms libelf-dev libudev-dev libpci-dev libiberty-dev autoconf git make dpkg-dev libmnl-dev pkg-config iproute2
|
||||||
sudo sed -i -- 's/# deb-src/deb-src/g' /etc/apt/sources.list
|
sudo sed -i -- 's/# deb-src/deb-src/g' /etc/apt/sources.list
|
||||||
sudo apt update
|
sudo apt update
|
||||||
apt-get source linux-image-unsigned-`uname -r`
|
apt-get source linux-image-unsigned-`uname -r`
|
||||||
@ -21,15 +21,6 @@ sudo modprobe vhost_vdpa
|
|||||||
sudo modprobe vdpa_sim
|
sudo modprobe vdpa_sim
|
||||||
sudo modprobe vdpa_sim_blk
|
sudo modprobe vdpa_sim_blk
|
||||||
sudo modprobe vdpa_sim_net
|
sudo modprobe vdpa_sim_net
|
||||||
# After the Jenkins builder are moved to Ubuntu 22.04, manually building and
|
|
||||||
# installing iproute2/vdpa won't be required.
|
|
||||||
# Tracked by: https://github.com/cloud-hypervisor/cloud-hypervisor/issues/3862
|
|
||||||
git clone https://github.com/shemminger/iproute2.git
|
|
||||||
pushd iproute2
|
|
||||||
./configure
|
|
||||||
make -j
|
|
||||||
sudo make install
|
|
||||||
popd
|
|
||||||
# Create /dev/vhost-vdpa-0
|
# Create /dev/vhost-vdpa-0
|
||||||
sudo vdpa dev add name vdpa-blk1 mgmtdev vdpasim_blk
|
sudo vdpa dev add name vdpa-blk1 mgmtdev vdpasim_blk
|
||||||
# Create /dev/vhost-vdpa-1
|
# Create /dev/vhost-vdpa-1
|
||||||
@ -39,4 +30,4 @@ sudo vdpa dev add name vdpa-net1 mgmtdev vdpasim_net
|
|||||||
sudo chmod 660 /dev/vhost-vdpa-0
|
sudo chmod 660 /dev/vhost-vdpa-0
|
||||||
sudo chmod 660 /dev/vhost-vdpa-1
|
sudo chmod 660 /dev/vhost-vdpa-1
|
||||||
sudo chmod 660 /dev/vhost-vdpa-2
|
sudo chmod 660 /dev/vhost-vdpa-2
|
||||||
vdpa dev show -jp
|
vdpa dev show -jp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user