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

Expose some variables in the environment #7

Open
antoine-morvan opened this issue Dec 14, 2023 · 1 comment
Open

Expose some variables in the environment #7

antoine-morvan opened this issue Dec 14, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@antoine-morvan
Copy link

Hello,

I have some scripts that need to know their location to execute properly. The JUBE launcher allows to copy some files to a generated fodler hierarchy. However, when you run a script, there is no variable in the environment that allow to access such information. Having a variable like JUBE_WORKDIR_PATH would be nice.

Some ideas for other variables can be taken from other existing solutions (for instance from here https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#using-environment-variables or here https://docs.gitlab.com/ee/ci/variables/predefined_variables.html ).

Also, in a similar way it's done in other CI engines, it might be helpful to simply know when we are actually running under JUBE, with a set variable like JUBE_HPC=true.

Best.

@thobreuer
Copy link
Collaborator

Hi Antoine,
JUBE defines some internal parameters (but they are not exported) which provide part of the requested values:
https://apps.fz-juelich.de/jsc/jube/jube2/docu/glossar.html#term-jube_variables

As a workaround, you could define your own parameters based on these and add the export="true" attribute.

Thank you for your suggestion. We will look into it.

@thobreuer thobreuer added the enhancement New feature or request label Dec 15, 2023
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

2 participants