mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
2.3 KiB
2.3 KiB
My own Jenkins
Note: This guide is not sufficient yet, to setup a Jenkins for project "Piper".
Requirements
- Java Runtime Environment 8
- Installation of Jenkins v 2.60.3 or higher running on Linux. We tested with debian-stretch.
- Jenkins Plugins installed as described in the Required Plugin section.
- A Jenkins user with administration privileges.
- The Jenkins instance has access to github.com.
Download and Installation
To setup the shared library, you need to perform the following steps:
- Login to your Jenkins instance with administration privileges.
- Open the system configuration page (Manage Jenkins > Configure System).
- Scroll down to section Global Pipeline Libraries and add a new Library by clicking the Add button.
- set Library Name to
piper-lib-os
- set Default Version to the branch or tag you want to consume (e.g.
master
orv0.1
) - set Retrieval Method to
Modern SCM
- set Source Code Management to
Git
- set Project Repository to
https://github.com/SAP/jenkins-library
- set Library Name to
- Save changes
Now the library is available as piper-lib-os
and can be used in any
Jenkinsfile
by adding this line:
@Library('piper-lib-os') _
Jenkins will download the library during execution of the Jenkinsfile
.