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

Add description block to pipeline and stages

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

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

              Created:
              Updated: