Skip to content

Concourse extension doesn't know about on_error for jobs #383

Closed

Description

@marco-m

Consider the following pipeline:

resource_types:

- name: cogito
  type: registry-image
  check_every: 24h
  source:
    repository: ((docker-registry))/cogito

resources:

- name: gh-status
  type: cogito
  check_every: 24h

- name: repo.git
  type: git
  source:
    uri: [email protected]:((github-owner))/((repo-name)).git

jobs:

  - name: autocat
    on_error:                     # <== problem reported here
      put: gh-status
      inputs: [repo.git]
    plan:
      - get: repo.git
        trigger: true
      - put: gh-status
        inputs: [repo.git]

The extension wrongly reports for on_error:

Unknown property 'on_error' for type 'Job'.

The documentation for on_error is: https://concourse-ci.org/on-error-step-hook.html#on_error

Activity

  1. kdvolder commented on Oct 25, 2019

    @kdvolder
    Member

    The doc that you linked to seems to be about a 'step' hook. And it is really not clear from that doc that it is something you can put on a job directly.

    There is similar docs on jobs, but it doesn't make mention of on_error. Only on_success, on_failure and on_abort are mentioned there: https://concourse-ci.org/jobs.html (scroll down to the bottom).

    Are you sure that 'on_error' works on job (rather than step)? If so I can certainly add support for this, but since its not mentioned in the doc, maybe it is on oversight in the docs, and we should also raise a ticket with concourse docs as well.

  2. marco-m commented on Oct 25, 2019

    @marco-m
    Author

    Ah, you were faster than me with upstream documentation, thanks!

  3. kdvolder commented on Nov 1, 2019

    @kdvolder
    Member

    Noticed another missing attribute while looking at the docs for Job. Created ticket here:
    #389

  4. added this to the 4.4.2.RELEASE milestone on Nov 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions