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

Adding java to path does not work #24

Open
carlbalmer opened this issue Apr 22, 2020 · 0 comments
Open

Adding java to path does not work #24

carlbalmer opened this issue Apr 22, 2020 · 0 comments
Assignees

Comments

@carlbalmer
Copy link
Contributor

carlbalmer commented Apr 22, 2020

Setting and referencing a environment variable in the same withEnv() statement does not seem to work. This is used in lab-08 and all following labs.

Example:

node() {
    withEnv(["JABBA_HOME=/nal_hutta", "PATH+JABBA=${env.JABBA_HOME}"]) {
        stage('Build') {
            sh 'echo $PATH && echo $JABBA_HOME'
        }
    }
}
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