Class ExpandableMessage
java.lang.Object
hudson.model.AbstractDescribableImpl<ExpandableMessage>
org.jenkinsci.plugins.github.common.ExpandableMessage
- All Implemented Interfaces:
Describable<ExpandableMessage>
Represents a message that can contain token macros.
uses https://wiki.jenkins-ci.org/display/JENKINS/Token+Macro+Plugin to expand vars
- Since:
- 1.14.1
- Author:
- Kanstantsin Shautsou, Alina Karpovich
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexpandAll
(Run<?, ?> run, TaskListener listener) Expands all env vars.
-
Constructor Details
-
ExpandableMessage
-
-
Method Details
-
expandAll
public String expandAll(Run<?, ?> run, TaskListener listener) throws IOException, InterruptedExceptionExpands all env vars. In case of AbstractBuild also expands token macro and build vars- Parameters:
run
- build contextlistener
- usually used to log something to console while building env vars- Returns:
- string with expanded vars and tokens
- Throws:
IOException
InterruptedException
-
getContent
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<ExpandableMessage>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<ExpandableMessage>
-