From a1feb520f9361b9ef7f07a297fcab33fedc07aa0 Mon Sep 17 00:00:00 2001 From: Kacper Dudzic Date: Mon, 30 May 2022 11:54:08 +0200 Subject: [PATCH] Update 'lab10/Jenkinsfile_dvc' --- lab10/Jenkinsfile_dvc | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/lab10/Jenkinsfile_dvc b/lab10/Jenkinsfile_dvc index 177a48d..b98bfdd 100644 --- a/lab10/Jenkinsfile_dvc +++ b/lab10/Jenkinsfile_dvc @@ -14,23 +14,11 @@ pipeline { sh 'cd ium_s449288' echo 'In ium_s449288 now' echo 'Creating dvc remote' - /*withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY', passphraseVariable: '', usernameVariable: 'USER')]) { - /*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 modify --local ium_ssh_remote password $IUM_SFTP_PASS'*/ - /*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' - echo 'Remote created' - echo 'Pulling from dvc' - sh 'dvc pull' - echo 'Files pulled' - echo 'Running pipeline' - sh 'dvc repro' - echo 'Finished'*/ withCredentials( [sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY', passphraseVariable: '', usernameVariable: 'USER')]) { sh 'dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY' - sh 'dvc pull'} + sh 'dvc pull' + } } } }