Skip to content

Replacement for Jenkins pipeline `sh` step that allows displaying a custom label in the BlueOcean UI.

License

Notifications You must be signed in to change notification settings

offa/labelled-steps-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

labelled-steps-plugin

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..."
    # ...
"""

About

Replacement for Jenkins pipeline `sh` step that allows displaying a custom label in the BlueOcean UI.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%