Hi all, 

in our Jenkins Setup we are currently using the "internal shared library", 
which is implicit accessible via its "master" Branch.
Pipelines using that code are working fine.

Now, I´ve cloned that repo into a BitBucket Repo for "pretesting" changes 
with a demo project that resided in a "Folder" inside Jenkins.
I´ve configured this folder to provide a "shared library" :

Name: cd_workflowlibs
Default version: master
Load implicitely: true
Allow default version to be overridden: true

The Url is like: ssh://g...@licdci01.mycompany.net:7999/cd/workflowlibs.git
Branches to build: origin-bitbucket/master

When starting my pipeline, the library seems to be loaded correctly: 

Loading library cd_workflowlibs@master
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin-bitbucket.url 
 > ssh://g...@licdci01.mycompany.net:7999/cd/workflowlibs.git # timeout=10
Fetching upstream changes from 
ssh://g...@licdci01.mycompany.net:7999/cd/workflowlibs.git
 > git --version # timeout=10
using GIT_SSH to set credentials SSH Bitbucket Access
 > git -c core.askpass=true fetch --tags --progress 
 > ssh://g...@licdci01.mycompany.net:7999/cd/workflowlibs.git 
 > +refs/heads/*:refs/remotes/origin-bitbucket/*
 > git rev-parse refs/remotes/origin-bitbucket/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin-bitbucket/origin-bitbucket/master^{commit} 
 > # timeout=10
Checking out Revision 205f22f3563b2c5b224e41fdd8c53d1c22b041d2 
(refs/remotes/origin-bitbucket/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 205f22f3563b2c5b224e41fdd8c53d1c22b041d2


The weird thing now is, that new scripts will be executed properly - but 
changes made to "old", existing scripts aren´t reflected.
It seems like the "old" scripts are still being used from the global, 
internal shared library location (where changes are not yet pushed).

How can I disable any script coming from the internal shared library ? Is 
there a way to detect, which version (checksum?) of the script is really 
being used? 
For me it seems like a class-loading issue - and scripts from the internal 
shared library will be picked up, 1st.

Any ideas ? 

Thanx, 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/83889cb9-1424-4dcc-b2e9-e23d3db5a534%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to