in Technology by
How to create & use a Shared Library in Jenkins?

1 Answer

0 votes
by

Basic requirements for a Jenkins shared library to be used in a Pipeline Code are -

  • A Repository with pipeline shared library code in SCM.
  • An appropriate SCM Plugin configuration for the Jenkins instance.
  • Global Shared Library should be configured in Jenkins Global configuration.
  • Include the Shared Library in the Pipeline Code and use the methods defined in the Jenkins Shared Library.

E.g.

#!/urs/bin/env groovy
@Library('[email protected]')_

Related questions

0 votes
    How to create & use a Shared Library in Jenkins?...
asked Jul 17, 2021 in Technology by JackTerrance
0 votes
    I got some question regarding the shared and static libraries.So let me tell you what i did is, I ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 26, 2022 in Education by JackTerrance
0 votes
    Default Environment Variables by Jenkins & How to introduce custom environment variables?...
asked Sep 14, 2021 in Technology by JackTerrance
0 votes
    What are default Environment Variables by Jenkins & How to introduce custom environment variables?...
asked Jul 17, 2021 in Technology by JackTerrance
0 votes
    Point out the correct statement. (a) Slidify allows embedded code chunks (b) Slidify presentation cannot be shared easily (c) Slidify is difficult to use (d) None of the mentioned...
asked Oct 7, 2021 in Technology by JackTerrance
0 votes
    Can we place an Excel file in a shared location and use it to develop a report and refresh it in regular intervals?...
asked Oct 30, 2020 in Technology by JackTerrance
0 votes
    What are the common use cases Jenkins is used for?...
asked Sep 14, 2021 in Technology by JackTerrance
0 votes
    What are the common use cases Jenkins is used for?...
asked Jul 16, 2021 in Technology by JackTerrance
0 votes
    My question may be silly but I've been trying several ways and I still can't do what I want, i. ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    Ok, I'm doing a bunch of RIA/AJAX stuff and need to create a "pretty", custom confirm box which ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 10, 2022 in Education by JackTerrance
0 votes
    Ok, I'm doing a bunch of RIA/AJAX stuff and need to create a "pretty", custom confirm box which ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 10, 2022 in Education by JackTerrance
0 votes
    How many memory layers are in the Oracle shared pool?...
asked Dec 18, 2020 in Technology by JackTerrance
0 votes
    How do you open a read-only Shared Object Repository in QTP?...
asked Oct 19, 2020 in Technology by JackTerrance
0 votes
    I create an angular library "mylib" I create a service which uses BehaviorSubject Observable from rxjs. For ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 20, 2022 in Education by JackTerrance
...