gitpod.v1.EnvironmentAutomationService

UpdateTask

Updates an automation task configuration.

Use this method to:

  • Modify task commands
  • Update task triggers
  • Change dependencies
  • Adjust execution settings

Examples

  • Update command:

    Changes the task's command.

    id: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
    spec:
      command: "npm run test:coverage"
    
  • Update triggers:

    Modifies when the task runs.

    id: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
    metadata:
      triggeredBy:
        trigger:
          - postEnvironmentStart: true
    
post/gitpod.v1.EnvironmentAutomationService/UpdateTask

Request body

dependsOnstring[]

dependencies specifies the IDs of the automations this task depends on.

idstring uuid
specGitpodV1UpdateTaskRequestTaskSpec — unresolved $ref

Response

Success

GitpodV1UpdateTaskResponse required

Changes