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

Allow stage to operate as a labelled block

XMLWordPrintable

      Useful to give a label to one or more steps that are otherwise opaque in the log.

      stage('Deploying') {
          sh './deploy.sh --some-long-arguments'
      }
      

      FlowGraphTable should hide the body of the label step by default.

      Alternatives considered:

      sh script: './deploy.sh', label: 'Deploying'
      

      which does not scale well as a design (labeling should be orthogonal to step definitions); or implicit label creation when Groovy label expressions are encountered:

      LABEL: sh '/bin/perl abc def'
      

      which may break down:

      FOO:
      def x = 1;
      for (...) {
          ...
      }
      

        1. blueocean-failure.JPG
          60 kB
          mohamed badran
        2. stage-view.JPG
          34 kB
          mohamed badran

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            44 Vote for this issue
            Watchers:
            80 Start watching this issue

              Created:
              Updated:
              Resolved: