-
New Feature
-
Resolution: Duplicate
-
Minor
-
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