indigo-dc / jenkins-pipeline-library

Jenkins pipeline library with common functionalities for CI/CD environments, mainly targeted for the implementation of the SQA baseline requirements from https://indigo-dc.github.io/sqa-baseline/
Apache License 2.0
11 stars 6 forks source link

Get default node agent #113

Closed samuelbernardolip closed 3 years ago

samuelbernardolip commented 3 years ago

With no config, then the JePL code complains:

java.lang.NullPointerException: Cannot get property 'node_agent' on null object

when evaluating:

configToClass[(yaml.config.node_agent == null) ? DEFAULT_AGENT : yaml.config.node_agent]

so the code is expecting yaml.config.

With this patch the mentioned bug is corrected and yaml.config is not required anymore.