#!/usr/bin/env groovy pipeline { agent { node 'sys-fedora-x64' } triggers { pollSCM('H * * * *') } stages { stage ('Prepare') { steps { dir ('source') { checkout([ $class: 'GitSCM', branches: [ [ name: '*/master' ] ], extensions: [ [ $class: 'CloneOption', timeout: 60 ],[ $class: 'SubmoduleOption', trackingSubmodules: true, timeout: 60 ] ], userRemoteConfigs: [ [ url: 'git://git.qemu.org/qemu.git' ] ]]) } } } stage ("Configure") { steps { sh ''' arch=$(uname -m | sed -e "s/amd64/x86_64/" -e "s/armv7.*/arm/") mkdir -p build cd build ../source/configure --target-list=${arch}-softmmu ''' } } stage("Build") { steps { sh 'cd build; gmake -j $(nproc)' } } stage("Check") { steps { sh 'cd build; gmake -j $(nproc) check check-report.html' sh 'xsltproc -o build/junit.xml scripts/gtester.xsl build/check-report.xml' junit 'build/junit.xml' } } } }