From 4bf8099c9733cc53249cff2434ee14aeedc7f522 Mon Sep 17 00:00:00 2001 From: Mateusz Date: Sat, 26 Mar 2022 11:42:48 +0100 Subject: [PATCH] clone repo in Jenkinsfile --- Jenkinsfile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ffd6cc0..6fd7eef 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,10 +1,20 @@ pipeline { agent any stages { - stage('Stage 1') { + stage('Hello') { steps { echo 'Hello world!' } } + stage('Checkout') { + steps { + script { + git credentialsId: 's444498', url: 'https://git.wmi.amu.edu.pl/s444498/ium_444498.git' + sh "ls -lart ./*" + sh "git branch -a" + sh "git checkout master" + } + } + } } -} \ No newline at end of file +}