This project is a skeleton for creating custom Shared Pipeline Libraries with Jenkins.
- Jenkins version 2.62+
- Credentials version 2.1.18+
- Generic Webhook Trigger version 1.46+
- Git Plugin version 3.9+
- Pipeline version 2.6+
- Pipeline Utility Steps version 2.1.0+
- Pipeline: Multibranch with defaults version 2.0+
- Workspace Cleanup version 0.35+
- Navigate in Credentials -> System -> Global credentials and add following credentials :
- Git
- Type : Username and password
- Range : Global
- Username : Your Git username
- Password : Your Git password
- ID : git-main
- Description : Git - <Main>
- Git
- Browse in Admin Jenkins -> Configure system and modify following parameters (don't forget to save) :
- Global Pipeline Libraries : Add
- Name : custom
- Default version : master
- Load implicity : check
- Allow default version to be overridden : check
- Include Library changes in job recent changes : check
- Retrieval method : Modern SCM
- Source Code Management : Git
- Project Repository : this git repository URL
- Credentials : Select the credential you just created
- Behaviours : add "Discover tags"
- Global Pipeline Libraries : Add