Create a new pipeline a new block called description. The intention is this can be added within a pipeline or stage block to help describe what the pipeline or stage does. The contents of this should also appear in the console logs. I see a lot of people using echo to achieve this now which is fine, but I think have a description block fits in nicely with the concept of declarative pipelines.

      pipeline {
          description { 'CICD pipeline to deploy application' }
          agent any 
          stages {
              stage('Build') { 
                  description { 'Builds jar file and docker image' }
                  steps {
                      // 
                  }
              }
             ...
          }
      }
      

          [JENKINS-51668] Add description block to pipeline and stages

          There are no comments yet on this issue.

            Unassigned Unassigned
            dinesh_dh Dinesh Dharmawardena
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: