Labelled Pipeline Steps

ID: labelled-steps

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
Version: 1.0
Released:
Requires Jenkins 2.7.3
Installs: 488
Labels
Maintainers
Vicky Chijwani
Help us improve this page!
To propose a change submit a pull request to the plugin page on GitHub.