Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YAML anchors need to precede any references to them #326

Open
sebastian13 opened this issue Feb 4, 2021 · 0 comments
Open

YAML anchors need to precede any references to them #326

sebastian13 opened this issue Feb 4, 2021 · 0 comments

Comments

@sebastian13
Copy link

Hi,

there seems to be a mistake in the .jobber example in the documentation. I couldn't get the resultSinks to work until I've found the following on stackexchange.

In YAML all anchors ( those tokens starting with &) need to precede any references to them (using aliases, the tokens starting with *) in the file.

I was able to use resultSinks by putting them above jobs:

version: 1.4

resultSinks:
  - &email
    type: system-email

jobs:
  HealthPing:
    cmd: curl -m 5 --retry 2 https://healthchecks....
    time: '30'
    notifyOnError:
      - *email

If you can confirm this, please move the resultSinks above jobs on the documentation as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant