Skip to content

JenkinsPipelineUnit test harness for a Jenkins Shared Library

License

Notifications You must be signed in to change notification settings

umeshrama/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

Repository Structure

.
├── jobs
│   │
│   └── template                      # Template pipeline scripts to load the lib
|       |                             # are used by unit tests
│       └── pipeline
│           └── template.groovy
├── src
│   ├── org
│   │   └── hcm
│   │       └── libjenkins
│   │           └── Gitlab.groovy    # An example of a class
│   │
│   └── test
│       └── groovy
│           └── *.groovy             # JenkinsPipelineUnit tests
└── vars
    └── gitlab_stage.groovy          # Wrapper for gitalbCommitStatus

Contribution

Testing

./gradlew test

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

Additional Links

About

JenkinsPipelineUnit test harness for a Jenkins Shared Library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Groovy 100.0%