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

Allow stage to operate as a labelled block

    Details

    • Similar Issues:

      Description

      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 (...) {
          ...
      }
      

        Attachments

          Issue Links

            Activity

            jglick Jesse Glick created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Link This issue depends on JENKINS-26156 [ JENKINS-26156 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-26522 [ JENKINS-26522 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-26602 [ JENKINS-26602 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-26987 [ JENKINS-26987 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-27210 [ JENKINS-27210 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-26132 [ JENKINS-26132 ]
            jglick Jesse Glick made changes -
            Link This issue is blocking JENKINS-28293 [ JENKINS-28293 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 140 (Web Link)" [ 12950 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-29892 [ JENKINS-29892 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-28119 [ JENKINS-28119 ]
            jglick Jesse Glick made changes -
            Link This issue is blocking JENKINS-30088 [ JENKINS-30088 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 1 (Web Link)" [ 14178 ]
            jglick Jesse Glick made changes -
            Link This issue is blocking JENKINS-33185 [ JENKINS-33185 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-27395 [ JENKINS-27395 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "pipeline-stage-step PR 4 (Web Link)" [ 14298 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "workflow-cps PR 11 (Web Link)" [ 14299 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-34980 [ JENKINS-34980 ]
            jglick Jesse Glick made changes -
            Epic Link JENKINS-35400 [ 171193 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-27394 [ JENKINS-27394 ]
            chrisoneiota Chris Garman made changes -
            Assignee Jesse Glick [ jglick ] Chris Garman [ chrisoneiota ]
            abayer Andrew Bayer made changes -
            Link This issue is blocking JENKINS-28183 [ JENKINS-28183 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 160097 ] JNJira + In-Review [ 185557 ]
            jamesdumay James Dumay made changes -
            Link This issue blocks JENKINS-37323 [ JENKINS-37323 ]
            jamesdumay James Dumay made changes -
            Labels blueocean
            chrisoneiota Chris Garman made changes -
            Assignee Chris Garman [ chrisoneiota ] Jesse Glick [ jglick ]
            scm_issue_link SCM/JIRA link daemon made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            jglick Jesse Glick made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            jglick Jesse Glick made changes -
            Status Reopened [ 4 ] Open [ 1 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            abayer Andrew Bayer made changes -
            Component/s pipeline-general [ 21692 ]
            abayer Andrew Bayer made changes -
            Component/s workflow-plugin [ 18820 ]
            jglick Jesse Glick made changes -
            Component/s pipeline-stage-step-plugin [ 21709 ]
            Component/s pipeline [ 21692 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-36933 [ JENKINS-36933 ]
            svanoort Sam Van Oort made changes -
            Status In Review [ 10005 ] Closed [ 6 ]
            Resolution Done [ 10000 ]
            svanoort Sam Van Oort made changes -
            Summary Labeled block Allow stage to operate as a labelled block
            svanoort Sam Van Oort made changes -
            Labels blueocean blueocean pipeline-stage-view
            svanoort Sam Van Oort made changes -
            Description Useful to give a label to one or more steps that are otherwise opaque in the log.

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

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

            Alternatives considered:

            {code}
            sh script: './deploy.sh', label: 'Deploying'
            {code}

            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:

            {code}
            LABEL: sh '/bin/perl abc def'
            {code}

            which may break down:

            {code}
            FOO:
            def x = 1;
            for (...) {
                ...
            }
            {code}
            Useful to give a label to one or more steps that are otherwise opaque in the log.

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

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

            Alternatives considered:

            {code}
            sh script: './deploy.sh', label: 'Deploying'
            {code}

            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:

            {code}
            LABEL: sh '/bin/perl abc def'
            {code}

            which may break down:

            {code}
            FOO:
            def x = 1;
            for (...) {
                ...
            }
            {code}
            mbadran mohamed badran made changes -
            Attachment blueocean-failure.JPG [ 34046 ]
            mbadran mohamed badran made changes -
            Attachment stage-view.JPG [ 34047 ]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: