Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

NPE Using Jenkins Pipeline on a build agent #8

Open
fredkvogt opened this issue Apr 1, 2018 · 0 comments
Open

NPE Using Jenkins Pipeline on a build agent #8

fredkvogt opened this issue Apr 1, 2018 · 0 comments

Comments

@fredkvogt
Copy link

Works on the Jenkins master, but on a build slave NPEs on ConsulKVReadWrapper:105

Fails:

node ('agent') {
    wrap([$class: 'ConsulKVReadWrapper', reads: [
        [key: 'some/path', envKey: 'VALUE'],
        ]
    ]) {
        echo env.VALUE
    }
}

Works:

node ('master') {
    wrap([$class: 'ConsulKVReadWrapper', reads: [
        [key: 'some/path', envKey: 'VALUE'],
        ]
    ]) {
        echo env.VALUE
    }
}

Tested with Jenkins: 2.113

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

No branches or pull requests

1 participant