-
Bug
-
Resolution: Unresolved
-
Minor
-
None
When a parallel stage has a post condition that fails, it doesn't show up in the Blue Ocean interface correctly :
It's not clear from my discussion with abayer whether there is a Declartaive Pipeline bug here too or not.
See the screenshot below, and the following Jenkinsfile
pipeline { agent { label 'linux' } options { timeout(time: 1, unit: 'HOURS') buildDiscarder(logRotator(daysToKeepStr: '10')) } triggers { pollSCM('H * * * *') } stages { stage('Prepare Workspace') { steps { sh 'make clean || true' } } stage('Lint code') { steps { sh 'make lint' } } stage('Verifications') { parallel { stage('Client') { steps { sh 'make -C client check' } post { success { archiveArtifacts 'client/coverage/lcov-report' } } } stage('Services') { steps { sh 'make -C services check' } post { success { archiveArtifacts 'services/coverage/lcov-report' archiveArtifacts 'services/coverage/acceptance/lcov-report' } } } } } stage('Build jenkins/evergreen') { steps { sh 'make container' } } stage('Test jenkins/evergreen') { steps { sh 'make container-check' } post { always { archiveArtifacts artifacts: 'build/tests-run*/**.log*' } } } stage('Publish jenkins/evergreen') { when { expression { infra.isTrusted() } } steps { withCredentials([[$class: 'ZipFileBinding', credentialsId: 'jenkins-dockerhub', variable: 'DOCKER_CONFIG']]) { sh 'make publish' } } } } }
Basically the archiveArtifacts is in the parallel stages are failing, but not stopping the Pipeline or failing things correctly