-
Notifications
You must be signed in to change notification settings - Fork 0
Class.Task
@decentm/concourse-ts / Task
Defined in: components/task.ts:15
https://concourse-ci.org/docs/tasks/
• Input extends Identifier = Identifier
• Output extends Identifier = Identifier
new Task<
Input,Output>(name,customise?):Task<Input,Output>
Defined in: components/task.ts:66
https://concourse-ci.org/docs/tasks/
string
The name of the task. Only used for error messages, task names are not included in the serialised output
(instance) => void
Task<Input, Output>
name:
string
Defined in: components/task.ts:67
The name of the task. Only used for error messages, task names are not included in the serialised output
add_cache(...
inputs):void
Defined in: components/task.ts:135
https://concourse-ci.org/docs/tasks/#task-config-schema
...TaskCache[]
void
add_input(...
inputs):void
Defined in: components/task.ts:168
https://concourse-ci.org/docs/tasks/#input-schema
...TaskInput<string>[]
void
add_output(...
outputs):void
Defined in: components/task.ts:181
https://concourse-ci.org/docs/tasks/#output-schema
...TaskOutput<string>[]
void
as_task_step(
customise?):TaskStep<Input,Output>
Defined in: components/task.ts:228
Creates a TaskStep that already has this Task configured.
(instance) => void
Customises the created TaskStep
TaskStep<Input, Output>
customise_task_step<
CustomTask>(customise):void
Defined in: components/task.ts:53
Customises every TaskStep created from this Task instance. If called multiple times, only the last call will have an effect.
• CustomTask extends Task<Identifier, Identifier>
Customiser<TaskStep<Identifier, Identifier>, CustomTask>
void
serialise():
Task<Input,Output>
Defined in: components/task.ts:251
Serialises this Task into a valid Concourse configuration fixture
Task<Input, Output>
set_cpu_limit_shares(
input):void
Defined in: components/task.ts:146
https://concourse-ci.org/docs/tasks/#container_limits-schema
number
The amount of shares to allocate to this task
void
set_image_resource(
input):void
Defined in: components/task.ts:89
Sets the image_resource of this task. If you pass a Resource, this function will create an anonymous resource from it automatically.
https://concourse-ci.org/docs/tasks/#task-config-schema
Resource<never, never, never, never, never> | AnonymousResource<string>
void
set_memory_limit(
input):void
Defined in: components/task.ts:157
https://concourse-ci.org/docs/tasks/#container_limits-schema
void
set_params(
params):void
Defined in: components/task.ts:204
Sets params in a key-value format. For example:
task.set_params(a: 1, b: 2)
task.serialise().params
// ^ {a: '1', b: '2'}https://concourse-ci.org/docs/tasks/#task-config-schema
void
set_platform(
platform):void
Defined in: components/task.ts:113
https://concourse-ci.org/docs/tasks/#task-config-schema
void
set_rootfs_uri(
rootfs_uri):void
Defined in: components/task.ts:218
https://concourse-ci.org/docs/tasks/#task-config-schema
string
void
set_run(
run):void
Defined in: components/task.ts:124
https://concourse-ci.org/docs/tasks/#command-schema
void
staticcustomise(init):void
Defined in: components/task.ts:27
Customises every Task created after this function was called. If called multiple times, only the last call will have an effect.
(instance) => void
void
staticcustomise_task_step<CustomTask>(init):void
Defined in: components/task.ts:39
Customises every TaskStep created after this function was called. If called multiple times, only the last call will have an effect.
• CustomTask extends Task<Identifier, Identifier>
Customiser<TaskStep<Identifier, Identifier>, CustomTask>
void