From 1054eb339ba8f62e2db2c5fe5e013ce44bd0fd83 Mon Sep 17 00:00:00 2001 From: ulaniuk Date: Wed, 4 May 2022 19:28:20 +0200 Subject: [PATCH] t --- Jenkinsfile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d18875a..d437f65 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -29,12 +29,7 @@ pipeline { stages { 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']], extensions: [], userRemoteConfigs: [[credentialsId: 's478855', url: 'https://git.wmi.amu.edu.pl/s478855/ium_478855.git']]]) } } stage("Preparation") {