Declarative Shared Library - Adding stages from outside

2020-05-17 Thread 'Gavin Mogan' via Jenkins Users
Hey Everyone, I have a nice shared library pipeline that does a nice standard docker build - https://github.com/halkeye/jenkins-shared-library/blob/fe3da2b9519e91d7dbcf9a5584aceb52a0b627be/vars/buildDockerfile.groovy This has worked great for the various pure docker projects I work on. I'm loo

Re: Differents credentials per node

2020-05-17 Thread 'Gavin Mogan' via Jenkins Users
1) Slave has been renamed to agent, please use Agent. 2) How do you want to manage them? Do you want a random credential returned every time you call credential()? do you just want your pipeline to say credential("string" + functiontogetagentname())? Its probably not that hard to subclass the c