public class ModifyAddVersionTemplate extends hudson.model.AbstractDescribableImpl<ModifyAddVersionTemplate>
Modifier and Type | Class and Description |
---|---|
static class |
ModifyAddVersionTemplate.DescribtorImpl
Descriptor class.
|
Constructor and Description |
---|
ModifyAddVersionTemplate(String versionName,
boolean replaceDescription,
String descriptionText,
String releaseState,
boolean failOnJQL,
String failQuery)
Constructor, called by Jenkins.
|
Modifier and Type | Method and Description |
---|---|
void |
applyModifications(JIRAAccessTool jira,
org.apache.commons.lang.text.StrSubstitutor varReplacer,
PrintStream logger)
Creates or updates the version this template targets.
|
String |
getDescriptionText() |
String |
getFailQuery() |
String |
getReleaseState() |
String |
getVersionName() |
boolean |
isFailOnJQL() |
boolean |
isReplaceDescription() |
@DataBoundConstructor public ModifyAddVersionTemplate(String versionName, boolean replaceDescription, String descriptionText, String releaseState, boolean failOnJQL, String failQuery)
versionName
- the version to create or update.replaceDescription
- true if the description shall be replaceddescriptionText
- the new descriptionreleaseState
- what to do with the release state? released, unreleased or keepfailOnJQL
- fail if anything mathces the queryfailQuery
- the querypublic String getVersionName()
public boolean isReplaceDescription()
public String getDescriptionText()
public String getReleaseState()
public boolean isFailOnJQL()
public String getFailQuery()
public void applyModifications(JIRAAccessTool jira, org.apache.commons.lang.text.StrSubstitutor varReplacer, PrintStream logger)
jira
- the jira to usevarReplacer
- variable replace to enter build parameterslogger
- the logger used for outputing informationCopyright © 2004-2018. All Rights Reserved.