Adds a warning badge to the current Pipeline build. A warning badge uses the "warning" symbol with a text message. Badges added by addWarningBadge are displayed in the build history of the Pipeline job.

The Pipeline Syntax Snippet Generator guides the user to select badge options and provides online help for the options.

Example: Badge with a warning

The following example adds a "warning" symbol with the text, "This is a warning":

addWarningBadge text: 'This is a warning'