Hi Torsten,
 

> 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.
>

[Ram] : I did start writing the library with this separation ; after 
re-reading the documentation, moved this library has been moved to it's own 
repo. 

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')
>

[Ram] : Updated this configuration too.

With these changes, global shared libs are now usable from the Jenkinsfile.

/Ram
 

-- 
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/16b19116-dc06-46a4-a475-2d2c7344b566%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to