Hi,
I'm currently trying to setup shared libraries to use different versions.
Example use-case: Test job, that will use /main/development branch, where i can experiment with shared libraries and not ruining all production jobs.
1) First of all i tryed to set branch explicitly to "/main/development":
It works, as expected. But i can't see this selector in Jenkins log. Log looks loke this, and only in changesets i can see, that new selector actually worked
2) After that a tryed to setup lybrary versions for legacy SCM, as described in documentation (https://www.jenkins.io/doc/book/pipeline/shared-libraries/)
Here are shared libraries settings:
Build fails with the same error. I tryed:
- Default version = "/main"
- Default version = "/main/development"
- @Library('Default@main/development') in pipeline script
Maybe i'm making some stupid error in setup, but i have no means to debug that, as i can't get final selector from log.
Log shows only last succesful selector, and that new selector are saved to txt file, that instantly gets deleted.
I checked, that both selectors ("/main" and "/main/development"), written explicitly in settings - works as expected. But "${library.Default.version}" shows an error.
What i'm doing wrong? Or how i can see actual selector, that are generated in txt file?