library Name
Name of the shared library injected into the embedded Jenkins test instance. Defaults to project.name.
This value is injected as the test.library.name system property on all Jenkins test suites. Pipelines reference the library by this name:
@Library('my-shared-lib') _Content copied to clipboard
Override when the Jenkins library name must differ from the Gradle project name:
sharedLibrary {
libraryName = "my-shared-lib"
}Content copied to clipboard
Jenkins requires every registered library to contain at least one of src/ or vars/; a resources/-only library is rejected at runtime. A project that's purely an aggregator of peers needs to either ship an own src/ or vars/ file or disable self-registration by setting autoRegisterLibrary = false.