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") {