From 4e2487d96b641b1c6620285104bb79c9156cbccc Mon Sep 17 00:00:00 2001 From: leomahesh <99608166+leomahesh@users.noreply.github.com> Date: Tue, 21 Jun 2022 15:30:19 +0400 Subject: [PATCH] scm added --- hello-world/Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/hello-world/Jenkinsfile b/hello-world/Jenkinsfile index cb827940..f5cd983b 100644 --- a/hello-world/Jenkinsfile +++ b/hello-world/Jenkinsfile @@ -6,6 +6,7 @@ pipeline { echo 'Run the static analysis to the code' } } + checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: '812822f4-43e7-49ce-bc37-75489b56008a', url: 'https://github.com/leomahesh/jenkins-pipeline-tutorial.git']]]) stage('Compile') { steps { echo 'Compile the source code'