diff --git a/Jenkinsfile b/Jenkinsfile index 77943df..df8dddf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -29,8 +29,7 @@ node { stage("DVC"){ withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY')]) { - sh "dvc init -f" - sh "dvc remote add -d ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl/ium-sftp" + ssh-copy-id ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl sh "dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY" sh "dvc pull" }