Modifier and Type | Method and Description |
---|---|
void |
PrePostTaskActions.executeBefore(@NotNull InternalTaskType task,
@NotNull CommonTaskContext context)
Executes a custom action before the task is executed.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
CloverGrailsBuildTaskActions.addCloverToBuildConfigFile(@NotNull CommonTaskContext context,
@NotNull File buildConfigFile)
Add Clover dependencies the BuildConfig.groovy file.
|
protected boolean |
CloverGrailsBuildTaskActions.addCloverToPomFile(@NotNull CommonTaskContext context,
@NotNull File pomFile)
Add Clover dependencies the pom.xml file.
|
void |
CloverGrailsBuildTaskActions.executeBefore(@NotNull InternalTaskType task,
@NotNull CommonTaskContext context) |
protected @Nullable File |
CloverGrailsBuildTaskActions.getBuildConfigFile(@NotNull CommonTaskContext context)
Returns location of BuildConfig file in the workspace.
|
protected @Nullable File |
CloverGrailsBuildTaskActions.getPomFile(@NotNull CommonTaskContext context)
Returns location of pom.xml file in the workspace.
|
protected boolean |
CloverGrailsBuildTaskActions.isRequiredGrailsSupported(@NotNull CommonTaskContext context)
Returns if the project to be build requires Grails version which is supported by this action
(
CloverGrailsBuildTaskActions.MIN_GRAILS_VERSION_SUPPORTED and CloverGrailsBuildTaskActions.MAX_GRAILS_VERSION_SUPPORTED ). |
Modifier and Type | Interface and Description |
---|---|
interface |
DeploymentTaskContext |
Modifier and Type | Method and Description |
---|---|
@NotNull TaskResult |
AntBuildTask.execute(@NotNull CommonTaskContext taskContext) |
Constructor and Description |
---|
AntConfig(@NotNull CommonTaskContext taskContext,
@NotNull CapabilityContext capabilityContext,
@NotNull EnvironmentVariableAccessor environmentVariableAccessor) |
Modifier and Type | Method and Description |
---|---|
TaskResult |
CleanWorkingDirectoryTask.execute(@NotNull CommonTaskContext taskContext) |
@NotNull TaskResult |
ArtifactDownloaderTask.execute(@NotNull CommonTaskContext taskContext) |
Modifier and Type | Method and Description |
---|---|
protected ShellConfig |
CommandBuildTask.getConfig(@NotNull CommonTaskContext taskContext) |
Constructor and Description |
---|
CommandConfig(@NotNull CommonTaskContext taskContext,
@NotNull CapabilityContext capabilityContext,
@NotNull EnvironmentVariableAccessor environmentVariableAccessor) |
Modifier and Type | Method and Description |
---|---|
static @Nullable String |
GrailsBuildTask.getRequiredGrailsVersion(@NotNull CommonTaskContext taskContext)
Look up for 'application.properties' file and return Grails version set in it.
|
Modifier and Type | Method and Description |
---|---|
@NotNull TaskResult |
Maven1BuildTask.execute(@NotNull CommonTaskContext taskContext) |
@NotNull TaskResult |
Maven3BuildTask.execute(@NotNull CommonTaskContext taskContext) |
@NotNull TaskResult |
Maven2BuildTask.execute(@NotNull CommonTaskContext taskContext) |
static void |
MvnReleasePluginVariablesPublisher.injectVariablesIfExists(List<String> commandline,
File workingDir,
CommonTaskContext taskContext) |
Constructor and Description |
---|
AbstractMavenConfig(@NotNull CommonTaskContext taskContext,
@NotNull CapabilityContext capabilityContext,
@NotNull EnvironmentVariableAccessor environmentVariableAccessor,
@NotNull String capabilityPrefix,
@NotNull String executableName) |
Maven1Config(@NotNull CommonTaskContext taskContext,
@NotNull CapabilityContext capabilityContext,
@NotNull EnvironmentVariableAccessor environmentVariableAccessor) |
Maven2Config(@NotNull CommonTaskContext taskContext,
@NotNull CapabilityContext capabilityContext,
@NotNull EnvironmentVariableAccessor environmentVariableAccessor) |
Maven3Config(@NotNull CommonTaskContext taskContext,
@NotNull CapabilityContext capabilityContext,
@NotNull EnvironmentVariableAccessor environmentVariableAccessor) |
Modifier and Type | Method and Description |
---|---|
@NotNull TaskResult |
ScriptBuildTask.execute(@NotNull CommonTaskContext taskContext) |
protected ScriptConfig |
ScriptBuildTask.getConfig(@NotNull CommonTaskContext taskContext) |
Constructor and Description |
---|
ScriptConfig(@NotNull CommonTaskContext taskContext,
@NotNull EnvironmentVariableAccessor environmentVariableAccessor) |
Modifier and Type | Method and Description |
---|---|
@NotNull TaskResult |
AbstractShellBuildTask.execute(@NotNull CommonTaskContext taskContext) |
protected TaskResult |
AbstractShellBuildTask.execute(CommonTaskContext taskContext,
ShellConfig config) |
protected abstract ShellConfig |
AbstractShellBuildTask.getConfig(@NotNull CommonTaskContext taskContext) |
Modifier and Type | Method and Description |
---|---|
TaskResult |
DumpVariablesTask.execute(@NotNull CommonTaskContext taskContext) |
Modifier and Type | Method and Description |
---|---|
TaskResult |
InjectVariablesTask.execute(@NotNull CommonTaskContext taskContext) |
Modifier and Type | Method and Description |
---|---|
@NotNull TaskResult |
VcsBranchTask.execute(@NotNull CommonTaskContext taskContext) |
@NotNull TaskResult |
VcsCheckoutTask.execute(@NotNull CommonTaskContext taskContext) |
@NotNull TaskResult |
VcsCommitTask.execute(@NotNull CommonTaskContext taskContext) |
@NotNull TaskResult |
VcsPushTask.execute(@NotNull CommonTaskContext commonTaskContext) |
@NotNull TaskResult |
VcsTagTask.execute(@NotNull CommonTaskContext taskContext) |
Modifier and Type | Method and Description |
---|---|
static void |
VcsTaskUtils.appendAffectedCommits(long repositoryId,
@NotNull String revisionId,
@NotNull CommonTaskContext commonTaskContext)
Adds information about commit made by task to task context.
|
static @NotNull File |
VcsTaskUtils.getCheckoutDirectory(@NotNull CommonTaskContext taskContext,
long repositoryId)
Returns the checkout directory for the given repository, given task context.
|
Modifier and Type | Method and Description |
---|---|
@Nullable CommonTaskContext |
ProcessContextImpl.getTaskContext() |
@Nullable CommonTaskContext |
ProcessContext.getTaskContext() |
Modifier and Type | Method and Description |
---|---|
@NotNull com.atlassian.utils.process.ExternalProcess |
ProcessServiceImpl.createExternalProcess(@NotNull CommonTaskContext taskContext,
@NotNull ExternalProcessBuilder processBuilder) |
@NotNull com.atlassian.utils.process.ExternalProcess |
ProcessService.createExternalProcess(@NotNull CommonTaskContext taskContext,
@NotNull ExternalProcessBuilder processBuilder)
Create a new
ExternalProcess that logs to the BuildLogger for the given ResultKey
Processes created with this method will be decorated by any applicable TaskProcessCommandDecorator |
@NotNull com.atlassian.utils.process.ExternalProcess |
ProcessServiceImpl.executeExternalProcess(@NotNull CommonTaskContext taskContext,
@NotNull ExternalProcessBuilder processBuilder) |
@NotNull com.atlassian.utils.process.ExternalProcess |
ProcessService.executeExternalProcess(@NotNull CommonTaskContext taskContext,
@NotNull ExternalProcessBuilder processBuilder)
Create and execute
ExternalProcess that logs to the BuildLogger for the given ResultKey
Processes created with this method will be decorated by any applicable TaskProcessCommandDecorator |
ProcessContext |
ProcessContextFactoryImpl.forTaskContext(@NotNull CommonTaskContext taskContext) |
ProcessContext |
ProcessContextFactory.forTaskContext(@NotNull CommonTaskContext taskContext)
Generate
ProcessContext for a task. |
@NotNull Map<String,String> |
EnvironmentVariableAccessorImpl.getEnvironment(@NotNull CommonTaskContext taskContext) |
@NotNull Map<String,String> |
EnvironmentVariableAccessor.getEnvironment(@NotNull CommonTaskContext taskContext)
Use
TaskContext as a source of environment settings. |
@NotNull List<String> |
EnvironmentVariableAccessorImpl.getPaths(@NotNull CommonTaskContext taskContext) |
@NotNull List<String> |
EnvironmentVariableAccessor.getPaths(@NotNull CommonTaskContext taskContext)
Use
TaskContext as a source of additional PATH settings. |
Modifier and Type | Method and Description |
---|---|
static Function<String,Result<RepositoryDefinitionException,PlanRepositoryDefinition>> |
RepositoryFunctions.idSelectorToPlanRepositoryDefinition(@NotNull CommonTaskContext commonTaskContext) |
Modifier and Type | Interface and Description |
---|---|
interface |
TaskContext
Encapsulates the environment and configuration of a task running in a building environment.
|
Modifier and Type | Class and Description |
---|---|
class |
CommonTaskContextImpl |
class |
DeploymentTaskContextImpl |
class |
TaskContextImpl |
Modifier and Type | Method and Description |
---|---|
TaskResult |
CommonTaskType.execute(@NotNull CommonTaskContext taskContext)
Executes the task.
|
Collection<PrePostTaskActions> |
TaskActionExecutor.executePreTaskActions(@NotNull InternalTaskType task,
@NotNull CommonTaskContext taskContext)
Run pre-task execution actions.
|
Collection<PrePostTaskActions> |
TaskActionExecutorImpl.executePreTaskActions(@NotNull InternalTaskType task,
@NotNull CommonTaskContext taskContext) |
static TaskResultBuilder |
TaskResultBuilder.newBuilder(@NotNull CommonTaskContext taskContext)
Creates a new TaskResultBuilder for a
CommonTaskContext |
Modifier and Type | Method and Description |
---|---|
static PlanRepositoryDefinition |
RepositoryTaskHelper.getPlanRepositoryByIdSelector(@NotNull CommonTaskContext commonTaskContext,
@NotNull String repositoryIdSelector) |
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.