Hi
try to separate your Jenkinsfile from the code of your shared library.
Usually the shared library provides some global functions that you may
re-use in some Jenkinsfile(s)
=> the library is shared code, the Jenkinsfile belongs to your project(s)
using that library.
Than, make sure you know what version of the library you are using:
- configure it in Jenkins/manage Jenkins -> global shared library. Here
you´ll have to setup repo, branch, credentials to your shared library.
You can also configure it on a per folder base and you may reference it
using the annotation@Library('somelib')
It´s pretty well documented at
https://github.com/jenkinsci/workflow-cps-global-lib-plugin/blob/master/README.md
Good luck!
Best regards, Torsten
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/afb9e52f-4c01-42f9-81aa-990478d4333d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.