From 6e8b42822debf71bac24e9ad0d3c856739dc0305 Mon Sep 17 00:00:00 2001 From: Kacper Dudzic Date: Mon, 30 May 2022 12:31:17 +0200 Subject: [PATCH] Update 'lab10/Jenkinsfile_dvc' --- lab10/Jenkinsfile_dvc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lab10/Jenkinsfile_dvc b/lab10/Jenkinsfile_dvc index ebdba0b..4241894 100644 --- a/lab10/Jenkinsfile_dvc +++ b/lab10/Jenkinsfile_dvc @@ -8,11 +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', passphraseVariable: '', usernameVariable: 'USER')]) { - sh 'dvc remote add -f -d ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl' + withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY')]) { sh 'dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY' - sh 'dvc pull'} + sh "dvc pull" + } } } }