diff --git a/lab10/Jenkinsfile_dvc b/lab10/Jenkinsfile_dvc index e7ad984..353e6e3 100644 --- a/lab10/Jenkinsfile_dvc +++ b/lab10/Jenkinsfile_dvc @@ -8,9 +8,10 @@ pipeline { stage('Dvc pull and reproduce') { steps { checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 'f695fe86-8cca-47f7-a546-d3bfd1059fd4', url: 'https://git.wmi.amu.edu.pl/s449288/ium_s449288.git']]]) - withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY', usernameVariable: 'USERNAME')]) { + withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY', usernameVariable: 'USER')]) { + sh 'ls -lh' sh 'dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY' - sh "dvc pull" + sh 'dvc pull' } } }