-
Type:
New Feature
-
Resolution: Duplicate
-
Priority:
Minor
-
Component/s: pipeline, pipeline-model-definition-plugin
-
None
Using the following settings declarative pipeline:
pipeline {
agent {
kubernetes {
cloud 'OpenShift'
label 'jenkins-agent-pod'
yaml readFile('k8s-podspec.yaml')
}
}
...
Â
Results in the following error from Jenkins:
Running in Durability level: MAX_SURVIVABILITY [Pipeline] readFile Required context class hudson.FilePath is missing Perhaps you forgot to surround the code with a step that provides this, such as: node [Pipeline] End of Pipeline
Â
Â
- duplicates
-
JENKINS-52259 Read pod template yaml from external file
-
- Closed
-