Home
Softono

Jenkins Pipeline Shared Library Example Maven

Open source Groovy
20
Stars
12
Forks
0
Issues
1
Watchers
8 years
Last Commit

 About Jenkins Pipeline Shared Library Example Maven

Jenkins Global Library Example with Unit tests

Platforms

Web Self-hosted

Languages

Groovy

Links

Need Help Installing Jenkins Pipeline Shared Library Example Maven?

We provide expert installation service for this software. Our team will install, configure, and secure Jenkins Pipeline Shared Library Example Maven on your server. plans start at just $30.

Jenkins Pipeline Shared Library Example Maven

View on GitHub

Jenkins Shared Library Example

This repository contains examples of a Jenkins Shared/Global Library with Unit tests.

Build Status

Features

  • Maven for dependency management and test configuration (using maven-resources, gmavenplus and surefire plugin )
  • IDE support for IntelliJ (Project detection + Auto-Completion)
  • Unit tests with JenkinsPipelineUnit

Testing

Using Jenkins and writing pipeline-as-code is very powerful but can get pretty complex. To speed up the development cycle this example uses JenkinsPipelineUnit, which lets you write unit tests on the configuration and conditional logic of the pipeline code, by providing a mock execution of the pipeline. You can mock built-in Jenkins commands, job configurations, see the stacktrace of the whole execution and even track regressions.

Run the tests with the following command:

mvn test

Read more