Skip to content

stchar/pipeline-sharedlib-testharness

Repository files navigation

Jenkins Shared Library Test Harness Example

This repository contains examples of a Jenkins Shared Library and JenkinsPipelineUnit test harness (see slides https://slides.com/stasovchar/deck-2)

Repository Structure

.
├── 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

Contribution

Testing

./gradlew check

# Runing gradle behind a proxy
# ./gradlew -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=3128 check

Slides

Video

  • RU_RU: TBD
  • EN_US: TBD

Additional Links

About

JenkinsPipelineUnit test harness for a Jenkins Shared Library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages