in Jenkins by
Q:
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
0 votes
asked Dec 10, 2022 in Jenkins by SakshiSharma
0 votes
asked Aug 23, 2021 in DevOps by sharadyadav1986
0 votes
asked Apr 28, 2021 in Jenkins by Robindeniel
0 votes
asked May 1, 2021 in Jenkins by rajeshsharma
...