I've been playing around with declarative pipelines and I can't seem to get the stage view to show any results. Here's the sample file that I'm running
pipeline {
agent any
stages {
stage('Build 1') {
steps {
echo 'build 1....'
echo 'service 1'
}
}
stage('Build 2') {
steps {
echo 'build 2....'
echo 'service 2'
}
}
stage('Build 3') {
steps {
echo 'build 3....'
echo 'service 3'
}
}
}
}
The "build" is successful but this is what is displayed on the Jenkins page:

If I put in a simple pipeline definition like below, it works just fine.
node {
stage 'build1'
echo 'build 1'
stage 'build2'
echo 'build 2'
stage 'build3'
echo 'build 3'
}
Any thoughts on this??