build: Run linter over Jenkinsfile

This has resulted in the content being indented with spaces rather tabs
per Groovy coding style.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2022-11-01 09:10:07 +00:00
parent 851de1e0b3
commit 65628e8d94

60
Jenkinsfile vendored
View File

@ -19,7 +19,7 @@ pipeline{
steps { steps {
script { script {
runWorkers = false runWorkers = false
echo "Documentation only changes, no need to run the CI" echo 'Documentation only changes, no need to run the CI'
} }
} }
} }
@ -32,7 +32,7 @@ pipeline{
steps { steps {
script { script {
runWorkers = false runWorkers = false
echo "Fuzzer cargo files only changes, no need to run the CI" echo 'Fuzzer cargo files only changes, no need to run the CI'
} }
} }
} }
@ -42,7 +42,7 @@ pipeline{
beforeAgent true beforeAgent true
} }
steps { steps {
error("Failing as this is marked as a WIP or RFC PR.") error('Failing as this is marked as a WIP or RFC PR.')
} }
} }
stage('Cancel older builds') { stage('Cancel older builds') {
@ -71,17 +71,17 @@ pipeline{
} }
stage('Prepare environment') { stage('Prepare environment') {
steps { steps {
sh "scripts/prepare_vdpa.sh" sh 'scripts/prepare_vdpa.sh'
} }
} }
stage('Run OpenAPI tests') { stage('Run OpenAPI tests') {
steps { steps {
sh "scripts/run_openapi_tests.sh" sh 'scripts/run_openapi_tests.sh'
} }
} }
stage('Run unit tests') { stage('Run unit tests') {
steps { steps {
sh "scripts/dev_cli.sh tests --unit" sh 'scripts/dev_cli.sh tests --unit'
} }
} }
stage('Run integration tests') { stage('Run integration tests') {
@ -89,8 +89,8 @@ pipeline{
timeout(time: 1, unit: 'HOURS') timeout(time: 1, unit: 'HOURS')
} }
steps { steps {
sh "sudo modprobe openvswitch" sh 'sudo modprobe openvswitch'
sh "scripts/dev_cli.sh tests --integration" sh 'scripts/dev_cli.sh tests --integration'
} }
} }
} }
@ -114,7 +114,7 @@ pipeline{
} }
stage('Run unit tests') { stage('Run unit tests') {
steps { steps {
sh "scripts/dev_cli.sh tests --unit --libc musl" sh 'scripts/dev_cli.sh tests --unit --libc musl'
} }
} }
stage('Run integration tests') { stage('Run integration tests') {
@ -122,13 +122,13 @@ pipeline{
timeout(time: 1, unit: 'HOURS') timeout(time: 1, unit: 'HOURS')
} }
steps { steps {
sh "sudo modprobe openvswitch" sh 'sudo modprobe openvswitch'
sh "scripts/dev_cli.sh tests --integration --libc musl" sh 'scripts/dev_cli.sh tests --integration --libc musl'
} }
} }
stage('Install azure-cli') { stage('Install azure-cli') {
steps { steps {
installAzureCli("bionic", "arm64") installAzureCli('bionic', 'arm64')
} }
} }
stage('Download Windows image') { stage('Download Windows image') {
@ -159,7 +159,7 @@ pipeline{
timeout(time: 1, unit: 'HOURS') timeout(time: 1, unit: 'HOURS')
} }
steps { steps {
sh "scripts/dev_cli.sh tests --integration-windows --libc musl" sh 'scripts/dev_cli.sh tests --integration-windows --libc musl'
} }
} }
} }
@ -186,12 +186,12 @@ pipeline{
} }
stage('Prepare environment') { stage('Prepare environment') {
steps { steps {
sh "scripts/prepare_vdpa.sh" sh 'scripts/prepare_vdpa.sh'
} }
} }
stage('Run unit tests for musl') { stage('Run unit tests for musl') {
steps { steps {
sh "scripts/dev_cli.sh tests --unit --libc musl" sh 'scripts/dev_cli.sh tests --unit --libc musl'
} }
} }
stage('Run integration tests for musl') { stage('Run integration tests for musl') {
@ -199,8 +199,8 @@ pipeline{
timeout(time: 1, unit: 'HOURS') timeout(time: 1, unit: 'HOURS')
} }
steps { steps {
sh "sudo modprobe openvswitch" sh 'sudo modprobe openvswitch'
sh "scripts/dev_cli.sh tests --integration --libc musl" sh 'scripts/dev_cli.sh tests --integration --libc musl'
} }
} }
} }
@ -224,7 +224,7 @@ pipeline{
} }
stage('Install azure-cli') { stage('Install azure-cli') {
steps { steps {
installAzureCli("jammy", "amd64") installAzureCli('jammy', 'amd64')
} }
} }
stage('Download assets') { stage('Download assets') {
@ -238,7 +238,7 @@ pipeline{
timeout(time: 1, unit: 'HOURS') timeout(time: 1, unit: 'HOURS')
} }
steps { steps {
sh "scripts/dev_cli.sh tests --integration-windows" sh 'scripts/dev_cli.sh tests --integration-windows'
} }
} }
stage('Run Windows guest integration tests for musl') { stage('Run Windows guest integration tests for musl') {
@ -246,7 +246,7 @@ pipeline{
timeout(time: 1, unit: 'HOURS') timeout(time: 1, unit: 'HOURS')
} }
steps { steps {
sh "scripts/dev_cli.sh tests --integration-windows --libc musl" sh 'scripts/dev_cli.sh tests --integration-windows --libc musl'
} }
} }
} }
@ -270,8 +270,8 @@ pipeline{
timeout(time: 1, unit: 'HOURS') timeout(time: 1, unit: 'HOURS')
} }
steps { steps {
sh "sudo modprobe openvswitch" sh 'sudo modprobe openvswitch'
sh "scripts/dev_cli.sh tests --integration-live-migration" sh 'scripts/dev_cli.sh tests --integration-live-migration'
} }
} }
stage('Run live-migration integration tests for musl') { stage('Run live-migration integration tests for musl') {
@ -279,8 +279,8 @@ pipeline{
timeout(time: 1, unit: 'HOURS') timeout(time: 1, unit: 'HOURS')
} }
steps { steps {
sh "sudo modprobe openvswitch" sh 'sudo modprobe openvswitch'
sh "scripts/dev_cli.sh tests --integration-live-migration --libc musl" sh 'scripts/dev_cli.sh tests --integration-live-migration --libc musl'
} }
} }
} }
@ -322,16 +322,16 @@ def cancelPreviousBuilds() {
} }
def installAzureCli(distro, arch) { def installAzureCli(distro, arch) {
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=${arch}] https://packages.microsoft.com/repos/azure-cli/ ${distro} main\" | sudo tee /etc/apt/sources.list.d/azure-cli.list" sh "echo \"deb [arch=${arch}] https://packages.microsoft.com/repos/azure-cli/ ${distro} 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'
} }
def boolean docsFileOnly() { def boolean docsFileOnly() {
if (env.CHANGE_TARGET == null) { if (env.CHANGE_TARGET == null) {
return false; return false
} }
return sh( return sh(
@ -342,7 +342,7 @@ def boolean docsFileOnly() {
def boolean fuzzFileOnly() { def boolean fuzzFileOnly() {
if (env.CHANGE_TARGET == null) { if (env.CHANGE_TARGET == null) {
return false; return false
} }
return sh( return sh(