Stage View with a Declarative Pipeline

39 views
Skip to first unread message

Brian Hoolihan

unread,
Apr 27, 2017, 1:12:03 PM4/27/17
to Jenkins Developers
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??
Auto Generated Inline Image 1

Patrick Wolf

unread,
Apr 27, 2017, 5:02:57 PM4/27/17
to jenkin...@googlegroups.com
I cut and paste what you have above into a new Pipeline and it works fine. Make sure you plugins are up to date.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/bafd52e2-eb26-44e8-84ac-88607802cc76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Patrick Wolf
Product Director - Jenkins 
CloudBees

Brian Hoolihan

unread,
Apr 28, 2017, 6:59:30 AM4/28/17
to Jenkins Developers
Was it a Multi-branch pipeline? 
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.

Brian Hoolihan

unread,
Apr 28, 2017, 7:02:24 AM4/28/17
to Jenkins Developers
Reply all
Reply to author
Forward
0 new messages