Add description block to pipeline and stages

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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 {
                      // 
                  }
              }
             ...
          }
      }
      

            Assignee:
            Unassigned
            Reporter:
            Dinesh Dharmawardena
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: