From e01d111888857c3c871f14beb5bb8aebeafef371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Ulaniuk?= Date: Sun, 27 Mar 2022 22:58:00 +0200 Subject: [PATCH] Git checkout change --- Jenkinsfile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9e0646b..4b465ad 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,12 +24,8 @@ node { stage('Checkout') { steps { - script { - git credentialsId: 'jenkins-user-github', url: 'https://git.wmi.amu.edu.pl/s478855/ium_478855.git' - sh "ls -lart ./*" - sh "git branch -a" - sh "git checkout master" - } + checkout([$class: 'GitSCM', branches: [[name: '*/master']], + userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s478855/ium_478855.git']]]) } }