This repository contains examples of a Jenkins Shared Library and JenkinsPipelineUnit test harness (see slides https://slides.com/stasovchar/deck-2)
.
├── jobs # Template pipeline scripts to load the lib
│ │ # are used by unit tests
│ └── template
| |
│ └── template.groovy
├── src
│ └── org
│ └── hcm
│ └── libjenkins
│ └── *.groovy # Examples of Library class
├── test
│ ├── integration
│ │ └── groovy
│ │ └── *.groovy # Integration tests
│ └── unit
│ └── groovy
│ └── *.groovy # JenkinsPipelineUnit tests
└── vars
└── *.groovy # Jenkins pipeline shared library vars objects
./gradlew check
# Runing gradle behind a proxy
# ./gradlew -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=3128 check
RU_RU
: TBDEN_US
: TBD
- https://jenkins.io/doc/book/pipeline/shared-libraries/
- https://www.cloudbees.com/blog/top-10-best-practices-jenkins-pipeline-plugin
- https://github.com/lesfurets/JenkinsPipelineUnit
- https://github.com/mkobit/jenkins-pipeline-shared-libraries-gradle-plugin
- https://github.com/jenkinsci/jenkins-test-harness