Package com.xebialabs.xlrelease.domain
Class ExternalScriptTask
java.lang.Object
com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
com.xebialabs.xlrelease.domain.PlanItem
com.xebialabs.xlrelease.domain.Task
com.xebialabs.xlrelease.domain.BaseScriptTask
com.xebialabs.xlrelease.domain.ResolvableScriptTask
com.xebialabs.xlrelease.domain.ExternalScriptTask
- All Implemented Interfaces:
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem,com.xebialabs.xlrelease.domain.Lockable,com.xebialabs.xlrelease.domain.ScriptVariableInterpolation,com.xebialabs.xlrelease.domain.VisitableItem,Serializable,Comparable<com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem>
@Metadata(label="Script: External Script",
versioned=false,
description="Executes a script from an external source")
public class ExternalScriptTask
extends com.xebialabs.xlrelease.domain.ResolvableScriptTask
- See Also:
-
Field Summary
Fields inherited from class com.xebialabs.xlrelease.domain.Task
CATEGORY_INPUT, CATEGORY_OUTPUT, delayDuringBlackout, DUE_SOON_THRESHOLD, executionId, failureHandler, failuresCount, hasBeenDelayed, hasBeenFlagged, IS_AUTOMATED_AND_IN_PROGRESS, maxCommentSize, originalScheduledStartDate, postponedDueToBlackout, postponedUntilEnvironmentsAreReserved, precondition, tags, taskFailureHandlerEnabled, taskRecoverOp, team, UNKNOWN_TASK_TYPE, variableMapping, waitForScheduledStartDateFields inherited from class com.xebialabs.xlrelease.domain.PlanItem
BY_TITLE, description, dueDate, endDate, flagComment, flagStatus, overdueNotified, owner, plannedDuration, scheduledStartDate, startDate, titleFields inherited from class com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
id, syntheticProperties, typeFields inherited from interface com.xebialabs.deployit.plugin.api.udm.ConfigurationItem
SYNTHETIC_PROPERTIES_FIELD, TYPE_FIELD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.xebialabs.xlrelease.domain.ChangesfreezeVariablesInCustomFields(Map<String, com.xebialabs.xlrelease.variable.ValueWithInterpolation> variables, Map<String, String> passwordVariables, com.xebialabs.xlrelease.domain.Changes changes, boolean freezeEvenIfUnresolved) getUrl()List<com.xebialabs.xlrelease.domain.variables.reference.UsagePoint>voidsetPassword(String password) voidsetScriptEngine(ScriptEngine scriptEngine) voidvoidsetUsername(String username) Methods inherited from class com.xebialabs.xlrelease.domain.ResolvableScriptTask
isScriptInterpolationOff, setIgnoreScriptVariableInterpolationMethods inherited from class com.xebialabs.xlrelease.domain.BaseScriptTask
executeScriptMethods inherited from class com.xebialabs.xlrelease.domain.Task
abort, accept, addWatcher, applyDefaults, canBeBackup, canScheduleTaskStart, canStartNow, checkDatesValidity, clearComments, clearModificationAttributes, delayDuringBlackoutHasChanged, deleteAttachment, deleteTask, fail, fail, fail, fail, failureHandlerHasChanged, findComment, freezeVariables, fromType, fromType, generateExecutionId, getAbortScript, getAllTasks, getAttachments, getChildren, getCiUid, getComments, getConfigurationUri, getContainer, getDelayedCount, getDisplayPath, getDocumentationPage, getElapsedDurationFraction, getExecutionId, getFacets, getFailureHandler, getFailuresCount, getFlaggedCount, getInputVariables, getLastStatusChangeBy, getMaxCommentSize, getOriginalScheduledStartDate, getPhase, getPrecondition, getReferencedVariableKeys, getReferencedVariables, getRelease, getReleaseOwner, getReleaseUid, getStatus, getTags, getTaskRecoverOp, getTaskType, getTeam, getUnboundRequiredVariables, getVariableMapping, getWatchers, hasAbortScript, hasBeenDelayed, hasBeenFlagged, hasBeenStarted, hasFailureHandlerScript, hasTaskRecoverOp, hasTeam, hasVariableMapping, isAborted, isAbortScriptInProgress, isActive, isAssignedTo, isAutomated, isCheckAttributes, isCompletedInAdvance, isDefaultTaskType, isDefunct, isDelayDuringBlackout, isDone, isDoneInAdvance, isDueSoon, isDueSoonNotified, isFacetInProgress, isFailed, isFailing, isFailureHandlerEnabled, isFailureHandlerInProgress, isGate, isInProgress, isLocked, isMovable, isNotYetReached, isParallelGroup, isPending, isPlanned, isPostponedDueToBlackout, isPostponedUntilEnvironmentsAreReserved, isPreconditionEnabled, isPreconditionInProgress, isSkipped, isSkippedInAdvance, isStillExecutingScript, isSupportedInWorkflow, isTaskFailureHandlerEnabled, isTaskGroup, isUpdatable, isWaitForScheduledStartDate, isWaitingForInput, lock, markAsDone, ownerHasBeenReassigned, postponeUntilEnvironmentsAreReserved, preconditionHasChanged, removeWatcher, reopen, replaceTask, resetToPlanned, retry, setAttachments, setCheckAttributes, setCiUid, setConfigurationUri, setContainer, setDelayDuringBlackout, setDocumentationPage, setDueSoonNotified, setExecutionId, setFacets, setFailureHandler, setFailuresCount, setFlagStatus, setHasBeenDelayed, setHasBeenFlagged, setLocked, setMaxCommentSize, setOriginalScheduledStartDate, setPostponedDueToBlackout, setPostponedUntilEnvironmentsAreReserved, setPrecondition, setReleaseUid, setScheduledStartDate, setStatus, setSupportedInWorkflow, setTags, setTaskFailureHandlerEnabled, setTaskRecoverOp, setTeam, setVariableMapping, setWaitForScheduledStartDate, setWatchers, shouldFacetBeChecked, shouldFreezeVariableMapping, shouldNotifyDueSoon, shouldPreconditionBeChecked, start, startNow, startPending, startWithInput, teamHasBeenReassigned, unlock, updateCommentMethods inherited from class com.xebialabs.xlrelease.domain.PlanItem
calculateDueDate, checkDatesValidity, getActualDuration, getComputedPlannedDuration, getDescription, getDueDate, getEndDate, getEndOrDueDate, getFlagComment, getFlagStatus, getOrCalculateDueDate, getOwner, getPlannedDuration, getScheduledStartDate, getStartDate, getStartOrScheduledDate, getTitle, hasDueDate, hasEndDate, hasEndOrDueDate, hasOwner, hasOwner, hasPlannedDuration, hasScheduledStartDate, hasStartDate, hasStartOrScheduledDate, hasTitle, hasTitle, hasValidStartDates, isFlagged, isOverdue, isOverdueNotified, isTitleContaining, moveChildren, setDates, setDescription, setDueDate, setEndDate, setFlagComment, setOverdueNotified, setOwner, setPlannedDuration, setStartAndEndDatesIfEmpty, setStartDate, setTitle, shouldNotifyOverdue, updateDates, updateDurationMethods inherited from class com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
compareTo, equals, get$ciAttributes, get$directoryReference, get$externalProperties, get$internalId, get$referenceId, get$securedCi, get$securedDirectoryReference, get$token, get$validationMessages, getId, getName, getProperty, getPropertyDescriptor, getType, hashCode, hasProperty, set$ciAttributes, set$directoryReference, set$externalProperties, set$internalId, set$referenceId, set$securedCi, set$securedDirectoryReference, set$token, set$validationMessages, setId, setProperty, setType, toString
-
Constructor Details
-
ExternalScriptTask
public ExternalScriptTask()
-
-
Method Details
-
execute
protected com.xebialabs.xlrelease.domain.Changes execute(String targetId, com.xebialabs.xlrelease.events.TaskStartOrRetryOperation operation) - Overrides:
executein classcom.xebialabs.xlrelease.domain.Task
-
getEngine
- Specified by:
getEnginein classcom.xebialabs.xlrelease.domain.BaseScriptTask
-
getScript
- Specified by:
getScriptin classcom.xebialabs.xlrelease.domain.ResolvableScriptTask
-
getVariableUsages
- Overrides:
getVariableUsagesin classcom.xebialabs.xlrelease.domain.Task
-
freezeVariablesInCustomFields
public Set<String> freezeVariablesInCustomFields(Map<String, com.xebialabs.xlrelease.variable.ValueWithInterpolation> variables, Map<String, String> passwordVariables, com.xebialabs.xlrelease.domain.Changes changes, boolean freezeEvenIfUnresolved) - Overrides:
freezeVariablesInCustomFieldsin classcom.xebialabs.xlrelease.domain.Task
-
getUrl
- Overrides:
getUrlin classcom.xebialabs.xlrelease.domain.Task
-
setUrl
-
getUsername
-
setUsername
-
getPassword
-
setPassword
-
getScriptEngine
-
setScriptEngine
-