description |
---|
How to use the Jenkins Shared Library within your project. |
https://github.com/BCDevOps/jenkins-pipeline-shared-lib.git
Add the line below to import the shared library
library identifier: 'devops-library@master', retriever: modernSCM(
[$class: 'GitSCMSource',
remote: 'https://github.com/BCDevOps/jenkins-pipeline-shared-lib.git'])
Example:
library identifier: 'devops-library@master', retriever: modernSCM(
[$class: 'GitSCMSource',
remote: 'https://github.com/BCDevOps/jenkins-pipeline-shared-lib.git'])
stage('testing lib') {
def TIMESTAMP = getTimeStamp();
echo "${TIMESTAMP}"
}