Update 'lab10/Jenkinsfile_dvc'

This commit is contained in:
Kacper Dudzic 2022-05-30 12:16:37 +02:00
parent c69ff78724
commit 6de1c0e965

View File

@ -10,6 +10,7 @@ pipeline {
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'
sh 'dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY'
sh 'dvc pull'}
}