This repository contains a series of steps and variables for use inside of the Jenkins project’s own Jenkins instance(s).
Applies the appropriate defaults for building a Maven- or Gradle-based plugin project on Linux and Windows.
You are advised to be using a 2.x parent POM.
buildPlugin()
-
jdkVersions
(default:[8]
) - JDK version numbers, must match a version number jdk tool installed -
repo
(default:null
inherit from Multibranch) - custom Git repository to check out -
failFast
(default:true
) - instruct Maven tests to fail fast -
platforms
(default:['linux', 'windows']
) - Labels matching platforms to execute the steps against in parallel -
jenkinsVersions
: (default:[null]
) - a matrix of Jenkins baseline versions to build/test against in parallel (null means default, only available for Maven projects)
Usage:
buildPlugin(platforms: ['linux'], jdkVersions: [7, 8])