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 {
script {
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 {
script {
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
}
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') {
@ -71,17 +71,17 @@ pipeline{
}
stage('Prepare environment') {
steps {
sh "scripts/prepare_vdpa.sh"
sh 'scripts/prepare_vdpa.sh'
}
}
stage('Run OpenAPI tests') {
steps {
sh "scripts/run_openapi_tests.sh"
sh 'scripts/run_openapi_tests.sh'
}
}
stage('Run unit tests') {
steps {
sh "scripts/dev_cli.sh tests --unit"
sh 'scripts/dev_cli.sh tests --unit'
}
}
stage('Run integration tests') {
@ -89,8 +89,8 @@ pipeline{
timeout(time: 1, unit: 'HOURS')
}
steps {
sh "sudo modprobe openvswitch"
sh "scripts/dev_cli.sh tests --integration"
sh 'sudo modprobe openvswitch'
sh 'scripts/dev_cli.sh tests --integration'
}
}
}
@ -114,7 +114,7 @@ pipeline{
}
stage('Run unit tests') {
steps {
sh "scripts/dev_cli.sh tests --unit --libc musl"
sh 'scripts/dev_cli.sh tests --unit --libc musl'
}
}
stage('Run integration tests') {
@ -122,13 +122,13 @@ pipeline{
timeout(time: 1, unit: 'HOURS')
}
steps {
sh "sudo modprobe openvswitch"
sh "scripts/dev_cli.sh tests --integration --libc musl"
sh 'sudo modprobe openvswitch'
sh 'scripts/dev_cli.sh tests --integration --libc musl'
}
}
stage('Install azure-cli') {
steps {
installAzureCli("bionic", "arm64")
installAzureCli('bionic', 'arm64')
}
}
stage('Download Windows image') {
@ -159,7 +159,7 @@ pipeline{
timeout(time: 1, unit: 'HOURS')
}
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') {
steps {
sh "scripts/prepare_vdpa.sh"
sh 'scripts/prepare_vdpa.sh'
}
}
stage('Run unit tests for musl') {
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') {
@ -199,8 +199,8 @@ pipeline{
timeout(time: 1, unit: 'HOURS')
}
steps {
sh "sudo modprobe openvswitch"
sh "scripts/dev_cli.sh tests --integration --libc musl"
sh 'sudo modprobe openvswitch'
sh 'scripts/dev_cli.sh tests --integration --libc musl'
}
}
}
@ -224,7 +224,7 @@ pipeline{
}
stage('Install azure-cli') {
steps {
installAzureCli("jammy", "amd64")
installAzureCli('jammy', 'amd64')
}
}
stage('Download assets') {
@ -238,7 +238,7 @@ pipeline{
timeout(time: 1, unit: 'HOURS')
}
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') {
@ -246,7 +246,7 @@ pipeline{
timeout(time: 1, unit: 'HOURS')
}
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')
}
steps {
sh "sudo modprobe openvswitch"
sh "scripts/dev_cli.sh tests --integration-live-migration"
sh 'sudo modprobe openvswitch'
sh 'scripts/dev_cli.sh tests --integration-live-migration'
}
}
stage('Run live-migration integration tests for musl') {
@ -279,8 +279,8 @@ pipeline{
timeout(time: 1, unit: 'HOURS')
}
steps {
sh "sudo modprobe openvswitch"
sh "scripts/dev_cli.sh tests --integration-live-migration --libc musl"
sh 'sudo modprobe openvswitch'
sh 'scripts/dev_cli.sh tests --integration-live-migration --libc musl'
}
}
}
@ -322,16 +322,16 @@ def cancelPreviousBuilds() {
}
def installAzureCli(distro, arch) {
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 '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 "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 install -y azure-cli"
sh 'sudo apt update'
sh 'sudo apt install -y azure-cli'
}
def boolean docsFileOnly() {
if (env.CHANGE_TARGET == null) {
return false;
return false
}
return sh(
@ -342,7 +342,7 @@ def boolean docsFileOnly() {
def boolean fuzzFileOnly() {
if (env.CHANGE_TARGET == null) {
return false;
return false
}
return sh(