diff --git a/Jenkinsfile b/Jenkinsfile index 10906439..10ba0386 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,36 +1,62 @@ pipeline { agent none stages { - stage ("Worker build") { - agent { node { label 'focal-fw' } } - options { - timeout(time: 1, unit: 'HOURS') - } - - stages { - stage ('Checkout') { - steps { - checkout scm + stage ('Build') { + parallel { + stage ('CH/QEMU Tests') { + agent { node { label 'focal-fw' } } + options { + timeout(time: 1, unit: 'HOURS') } - } - stage ('Install system packages') { - steps { - sh "sudo apt-get -y install build-essential mtools qemu-system-x86 libssl-dev pkg-config m4 bison flex zlib1g-dev" + stages { + stage ('Checkout') { + steps { + checkout scm + } + } + stage ('Install system packages') { + steps { + sh "sudo apt-get -y install build-essential mtools qemu-system-x86 libssl-dev pkg-config" + } + } + stage ('Install Rust') { + steps { + sh "nohup curl https://sh.rustup.rs -sSf | sh -s -- -y" + } + } + stage('Run integration tests') { + steps { + sh "./run_integration_tests.sh" + } + } } } - stage ('Install Rust') { - steps { - sh "nohup curl https://sh.rustup.rs -sSf | sh -s -- -y" + stage ('coreboot QEMU Tests') { + agent { node { label 'focal-fw' } } + options { + timeout(time: 1, unit: 'HOURS') } - } - stage ('Run integration tests') { - steps { - sh "./run_integration_tests.sh" - } - } - stage ('Run coreboot integration tests') { - steps { - sh "./run_coreboot_integration_tests.sh" + stages { + stage ('Checkout') { + steps { + checkout scm + } + } + stage ('Install system packages') { + steps { + sh "sudo apt-get -y install build-essential mtools qemu-system-x86 libssl-dev pkg-config m4 bison flex zlib1g-dev" + } + } + stage ('Install Rust') { + steps { + sh "nohup curl https://sh.rustup.rs -sSf | sh -s -- -y" + } + } + stage('Run integration tests') { + steps { + sh "./run_coreboot_integration_tests.sh" + } + } } } }