Labelled Pipeline Steps1.0Minimum Jenkins requirement: 2.7.3ID: labelled-steps

Installs: 458
Last released:
Maintainers
Vicky Chijwani

Currently this plugin provides a replacement for the sh, bat and powershell steps in Jenkins pipelines to allow displaying a custom label in the BlueOcean UI.

Why is this needed?

See JENKINS-36933 and JENKINS-37324.

Example

In the following example, the BlueOcean UI will display Building the universe from scratch... as the step title (the step title is the thing you click on to see the shell output):

labelledShell label: 'Building the universe from scratch...', script: """
    echo "Sparking the Big Bang..."
    echo "Cosmic inflation begins..."
    # ...
"""
labelledBatch label: 'Building the universe from scratch...', script: """
    echo "Sparking the Big Bang..."
    echo "Cosmic inflation begins..."
    # ...
"""
labelledPowerShell label: 'Building the universe from scratch...', script: """
    echo "Sparking the Big Bang..."
    echo "Cosmic inflation begins..."
    # ...
"""
ArchivesGet past versions
Links
Labels