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

Using job-scoped environment variables #5

Closed
ess opened this issue Feb 20, 2019 · 0 comments
Closed

Using job-scoped environment variables #5

ess opened this issue Feb 20, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ess
Copy link
Owner

ess commented Feb 20, 2019

Given a valid job with env vars specified in a jobs file, when I pass that jobs file to cronenberg, the job should be run on its schedule, and the env vars configured for the job should be present. Also, job-scoped env vars take precedence over those specified in the calling environment.

Consider the following job:

- name: env-test
  command: echo $FOO
  when: "* * * * *"
  env:
    FOO: bar-job

Whether or not the shell from which cronenberg is launched has a FOO variable set, the output of this job should be "bar-job"

@ess ess self-assigned this Feb 20, 2019
@ess ess added enhancement New feature or request to do labels Feb 20, 2019
@ess ess closed this as completed in af14989 Feb 21, 2019
@ess ess removed the to do label Feb 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant