-
Bug
-
Resolution: Unresolved
-
Minor
I need to run jenkinsfile via the jenkinsdile-runner.
My jenkinsfile contains load shared library via filesystem scm plugin.
pipeline { agent any stages { stage('Load Library') { steps { library identifier: 'my@TestCase', retriever: legacySCM( filesystem(clearWorkspace: false, copyHidden: false, path: "/workspace/my")) } } stage('Test') { steps { my_method_to_run a: "aaaa" } } } }
Via docker execution the load shared lib is stuck.
Loading library my@TestCase FSSCM.checkout /workspace/my_shared_library to /tmp/jenkinsfileRunner.tmp/jfr5221246900865917223.run/workspace/job@libs/my
Hi shurikg,
thanks for using Jenkinsfile Runner. I've noticed how the path is different in the pipeline ("workspace/my") and in the log message ("workspace/my_shared_library"). Maybe it was only that you change it in order to put it here, but could you please make sure the path is correct? Also the path is your host while the Jenkinsfile is run into the Docker image? Then you need to make sure you are sharing the volume.
Probably you could also configure the shared library though the Configuration As Code plugin. See this example.