Update 'lab10/Jenkinsfile_dvc'

This commit is contained in:
Kacper Dudzic 2022-05-30 11:32:35 +02:00
parent 6e46e9fe54
commit e0d70c9c93

View File

@ -14,12 +14,12 @@ pipeline {
sh 'cd ium_s449288' sh 'cd ium_s449288'
echo 'In ium_s449288 now' echo 'In ium_s449288 now'
echo 'Creating dvc remote' echo 'Creating dvc remote'
/*withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY')]) {*/ withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY', usernameVariable: 'USER')]) {
withCredentials([string(credentialsId: 'ium-sftp-password', variable: 'IUM_SFTP_PASS')]) { /*withCredentials([string(credentialsId: 'ium-sftp-password', variable: 'IUM_SFTP_PASS')]) {*/
sh 'dvc remote add -f -d ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl' /*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 password $IUM_SFTP_PASS' /*sh 'dvc remote modify --local ium_ssh_remote password $IUM_SFTP_PASS'*/
/*sh 'ssh ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl -i $IUM_SFTP_KEY'*/ sh 'ssh ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl -i $IUM_SFTP_KEY'
/*sh 'dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY'*/ sh 'dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY'
echo 'Remote created' echo 'Remote created'
echo 'Pulling from dvc' echo 'Pulling from dvc'
sh 'dvc pull' sh 'dvc pull'