Class GroovyScriptTask

  • 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, java.io.Serializable, java.lang.Comparable<com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem>

    @Metadata(label="Script: Groovy Script / Releasefile",
              versioned=false)
    public class GroovyScriptTask
    extends com.xebialabs.xlrelease.domain.ScriptTask
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String GROOVY_ENGINE  
      • Fields inherited from class com.xebialabs.xlrelease.domain.ScriptTask

        JYTHON_ENGINE
      • 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, status, tags, taskFailureHandlerEnabled, taskRecoverOp, team, UNKNOWN_TASK_TYPE, variableMapping, waitForScheduledStartDate
      • Fields inherited from class com.xebialabs.xlrelease.domain.PlanItem

        BY_TITLE, description, dueDate, endDate, flagComment, flagStatus, overdueNotified, owner, plannedDuration, scheduledStartDate, startDate, title
      • Fields inherited from class com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem

        id, syntheticProperties, type
      • Fields inherited from interface com.xebialabs.deployit.plugin.api.udm.ConfigurationItem

        SYNTHETIC_PROPERTIES_FIELD, TYPE_FIELD
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.String> freezeVariablesInCustomFields​(java.util.Map<java.lang.String,​com.xebialabs.xlrelease.variable.ValueWithInterpolation> variables, java.util.Map<java.lang.String,​java.lang.String> passwordVariables, com.xebialabs.xlrelease.domain.Changes changes, boolean freezeEvenIfUnresolved)  
      java.lang.String getEngine()  
      java.util.List<com.xebialabs.xlrelease.domain.variables.reference.UsagePoint> getVariableUsages()  
      boolean isScriptInterpolationOff()  
      • Methods inherited from class com.xebialabs.xlrelease.domain.ScriptTask

        execute, getScript, setScript
      • Methods inherited from class com.xebialabs.xlrelease.domain.ResolvableScriptTask

        setIgnoreScriptVariableInterpolation
      • Methods inherited from class com.xebialabs.xlrelease.domain.BaseScriptTask

        executeScript
      • Methods inherited from class com.xebialabs.xlrelease.domain.Task

        abort, accept, addWatcher, applyDefaults, canBeBackup, canScheduleTaskStart, canStartNow, checkDatesValidity, clearComments, delayDuringBlackoutHasChanged, deleteAttachment, deleteTask, fail, fail, fail, fail, failureHandlerHasChanged, findComment, freezeVariables, fromType, fromType, generateExecutionId, getAbortScript, getAllTasks, getAttachments, getChildren, getCiUid, getComments, getConfigurationUri, getContainer, getDelayedCount, getDisplayPath, getElapsedDurationFraction, getExecutionId, getFacets, getFailureHandler, getFailuresCount, getFlaggedCount, getInputVariables, getMaxCommentSize, getOriginalScheduledStartDate, getPhase, getPrecondition, getReferencedVariables, getRelease, getReleaseOwner, getReleaseUid, getStatus, getTags, getTaskRecoverOp, getTaskType, getTeam, getUnboundRequiredVariables, getUrl, 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, isTaskFailureHandlerEnabled, isTaskGroup, isUpdatable, isWaitForScheduledStartDate, isWaitingForInput, lock, markAsDone, ownerHasBeenReassigned, postponeUntilEnvironmentsAreReserved, preconditionHasChanged, removeWatcher, reopen, replaceTask, resetToPlanned, retry, setAttachments, setCheckAttributes, setCiUid, setConfigurationUri, setContainer, setDelayDuringBlackout, setDueSoonNotified, setExecutionId, setFacets, setFailureHandler, setFailuresCount, setFlagStatus, setHasBeenDelayed, setHasBeenFlagged, setLocked, setMaxCommentSize, setOriginalScheduledStartDate, setPostponedDueToBlackout, setPostponedUntilEnvironmentsAreReserved, setPrecondition, setReleaseUid, setScheduledStartDate, setStatus, setTags, setTaskFailureHandlerEnabled, setTaskRecoverOp, setTeam, setVariableMapping, setWaitForScheduledStartDate, setWatchers, shouldFacetBeChecked, shouldFreezeVariableMapping, shouldNotifyDueSoon, shouldPreconditionBeChecked, start, startNow, startPending, startWithInput, teamHasBeenReassigned, unlock, updateComment
      • Methods 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, updateDuration
      • Methods 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
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • GroovyScriptTask

        public GroovyScriptTask()
    • Method Detail

      • getEngine

        public java.lang.String getEngine()
        Overrides:
        getEngine in class com.xebialabs.xlrelease.domain.ScriptTask
      • freezeVariablesInCustomFields

        public java.util.Set<java.lang.String> freezeVariablesInCustomFields​(java.util.Map<java.lang.String,​com.xebialabs.xlrelease.variable.ValueWithInterpolation> variables,
                                                                             java.util.Map<java.lang.String,​java.lang.String> passwordVariables,
                                                                             com.xebialabs.xlrelease.domain.Changes changes,
                                                                             boolean freezeEvenIfUnresolved)
        Overrides:
        freezeVariablesInCustomFields in class com.xebialabs.xlrelease.domain.ScriptTask
      • getVariableUsages

        public java.util.List<com.xebialabs.xlrelease.domain.variables.reference.UsagePoint> getVariableUsages()
        Overrides:
        getVariableUsages in class com.xebialabs.xlrelease.domain.ScriptTask
      • isScriptInterpolationOff

        public boolean isScriptInterpolationOff()
        Specified by:
        isScriptInterpolationOff in interface com.xebialabs.xlrelease.domain.ScriptVariableInterpolation
        Overrides:
        isScriptInterpolationOff in class com.xebialabs.xlrelease.domain.ResolvableScriptTask