Unary · Environment Automations
Creates a new automation task.
Use this method to:
- Define one-off or scheduled tasks
- Set up build or test automation
- Configure task dependencies
- Specify execution environments
Examples
-
Create basic task:
Creates a simple build task.
-
Create task with dependencies:
Creates a task that depends on other services.
Endpoint
https://app.ona.com with that domain.
Request example
Request
gitpod.v1.CreateTaskRequest
Response
gitpod.v1.CreateTaskResponse
Related types
AutomationTrigger
AutomationTrigger
An AutomationTrigger represents a trigger for an automation action.
The
manual field shows a start button in the UI for manually triggering the automation.
The post_machine_start field indicates that the automation should be triggered after the machine has started, before the devcontainer is ready.
This is used for machine-level services like security agents that need to start early.
The post_environment_start field indicates that the automation should be triggered after the environment has started (devcontainer ready).
The post_devcontainer_start field indicates that the automation should be triggered after the dev container has started.
The prebuild field starts the automation during a prebuild of an environment. This phase does not have user secrets available.
The before_snapshot field triggers the automation after all prebuild tasks complete but before the snapshot is taken.
This is used for tasks that need to run last during prebuilds, such as IDE warmup.
Note: The before_snapshot trigger can only be used with tasks, not services.gitpod.v1.AutomationTriggerEnvironmentVariableItem
EnvironmentVariableItem
EnvironmentVariableItem represents an environment variable that can be set
either from a literal value or from a secret reference.
gitpod.v1.EnvironmentVariableItemRunsOn
RunsOn
gitpod.v1.RunsOnSubject
Subject
gitpod.v1.SubjectTask
Task
gitpod.v1.TaskTaskMetadata
TaskMetadata
gitpod.v1.TaskMetadataTaskSpec
TaskSpec
gitpod.v1.TaskSpecPrincipal
Principal