Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-51668

Add description block to pipeline and stages

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

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

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            dinesh_dh Dinesh Dharmawardena
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: