Package io.jenkins.plugins.servicenow
Class PublishAppBuilder
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- io.jenkins.plugins.servicenow.ProgressBuilder
-
- io.jenkins.plugins.servicenow.PublishAppBuilder
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,SimpleBuildStep
public class PublishAppBuilder extends ProgressBuilder
Build step responsible for publishing the specified application and all of its artifacts to the application repository. See API documentation: https://developer.servicenow.com/dev.do#!/reference/api/orlando/rest/cicd-api#cicd-POST-app_repo-publish?navFilter=sn_cicd
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PublishAppBuilder.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
-
Field Summary
-
Fields inherited from class io.jenkins.plugins.servicenow.ProgressBuilder
workspace
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description PublishAppBuilder(String credentialsId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAppScope()
String
getAppSysId()
String
getAppVersion()
String
getDevNotes()
Integer
getIncrementBy()
Boolean
getIsAppCustomization()
String
getNextAppVersion(String currentVersion)
Returns next application version based on current version given in the argument.Boolean
getObtainVersionAutomatically()
protected boolean
perform(Run<?,?> run, TaskListener taskListener, Integer progressCheckInterval)
void
setApplicationVersion(ApplicationVersion applicationVersion)
void
setAppScope(String appScope)
void
setAppSysId(String appSysId)
void
setAppVersion(String appVersion)
void
setDevNotes(String devNotes)
void
setIncrementBy(Integer incrementBy)
void
setIsAppCustomization(Boolean appCustomization)
void
setObtainVersionAutomatically(Boolean obtainVersionAutomatically)
protected void
setupBuilderParameters(EnvVars environment)
protected List<ParameterValue>
setupParametersAfterBuildStep()
-
Methods inherited from class io.jenkins.plugins.servicenow.ProgressBuilder
buildErrorDetailFromFailedResponse, checkProgress, getApiVersion, getClientFactory, getCredentialsId, getGlobalSNParams, getRestClient, getUrl, getValue, perform, setApiVersion, setClientFactory, setCredentialsId, setRestClient, setUrl
-
Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuild
-
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
-
-
-
Constructor Detail
-
PublishAppBuilder
@DataBoundConstructor public PublishAppBuilder(String credentialsId)
-
-
Method Detail
-
getAppScope
public String getAppScope()
-
setAppScope
@DataBoundSetter public void setAppScope(String appScope)
-
getAppSysId
public String getAppSysId()
-
setAppSysId
@DataBoundSetter public void setAppSysId(String appSysId)
-
getAppVersion
public String getAppVersion()
-
setAppVersion
@DataBoundSetter public void setAppVersion(String appVersion)
-
getDevNotes
public String getDevNotes()
-
setDevNotes
@DataBoundSetter public void setDevNotes(String devNotes)
-
getObtainVersionAutomatically
public Boolean getObtainVersionAutomatically()
-
setObtainVersionAutomatically
@DataBoundSetter public void setObtainVersionAutomatically(Boolean obtainVersionAutomatically)
-
getIncrementBy
public Integer getIncrementBy()
-
setIncrementBy
@DataBoundSetter public void setIncrementBy(Integer incrementBy)
-
getIsAppCustomization
public Boolean getIsAppCustomization()
-
setIsAppCustomization
@DataBoundSetter public void setIsAppCustomization(Boolean appCustomization)
-
setApplicationVersion
@Inject public void setApplicationVersion(ApplicationVersion applicationVersion)
-
perform
protected boolean perform(Run<?,?> run, @NonNull TaskListener taskListener, Integer progressCheckInterval)
- Specified by:
perform
in classProgressBuilder
-
setupBuilderParameters
protected void setupBuilderParameters(EnvVars environment)
- Overrides:
setupBuilderParameters
in classProgressBuilder
-
getNextAppVersion
public String getNextAppVersion(String currentVersion)
Returns next application version based on current version given in the argument.- Parameters:
currentVersion
- Current version of the application- Returns:
- Next valid application version.
-
setupParametersAfterBuildStep
protected List<ParameterValue> setupParametersAfterBuildStep()
- Overrides:
setupParametersAfterBuildStep
in classProgressBuilder
-
-