Skip to content

pyatizbyantsevia/jenkins-shared-library-unit-tests-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jenkins Shared library unit tests example

This is an example that shows how you can organize the architecture of Jenkins Shared Library to use Jenkins-steps inside classes. It also shows how you can cover the logic with unit tests using the Spock framework with this approach.

The library itself provides classes for communicating with Jenkins, Bitbucket via REST API, a wrapper for git, and other useful things

Build and run tests

Run gradle test in jenkins-shared-library directory

Tested on:

  • gradle 8.10.2;
  • jdk 21.0.7

About

Example of unit testing Jenkins Shared Library using Jenkins-steps inside classes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages