Skip to content

jenkinsci/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

Replacements for Jenkins pipeline `sh`, `bat`, and `powershell` steps to allow displaying a custom label in the BlueOcean UI.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages