pipeline { agent any stages { stage('Build') { parallel { stage('Build Linux') { agent { docker { image 'python:alpine' label 'docker' alwaysPull true } } steps { echo "Running CI for Linux" sh "pip install tox" sh "tox -q r -e ci" sh "mv dist dist.linux" archiveArtifacts artifacts: 'dist.linux', fingerprint: true cleanWs cleanWhenAborted: false, cleanWhenFailure: false, cleanWhenNotBuilt: false, cleanWhenUnstable: false } } stage('Build Windows') { agent { label 'windows' } steps { echo "Running CI for Windows" sh "tox -q r -e ci" sh "mv dist dist.windows" archiveArtifacts artifacts: 'dist.windows', fingerprint: true cleanWs cleanWhenAborted: false, cleanWhenFailure: false, cleanWhenNotBuilt: false, cleanWhenUnstable: false } } } } } }