Update 'lab10/Jenkinsfile_dvc'
This commit is contained in:
parent
85ade020e3
commit
a1e48ccf7c
@ -14,7 +14,7 @@ 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', passphraseVariable: '', usernameVariable: 'USER')]) {
|
/*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')]) {*/
|
/*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'*/
|
||||||
@ -26,7 +26,11 @@ pipeline {
|
|||||||
echo 'Files pulled'
|
echo 'Files pulled'
|
||||||
echo 'Running pipeline'
|
echo 'Running pipeline'
|
||||||
sh 'dvc repro'
|
sh 'dvc repro'
|
||||||
echo 'Finished'
|
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'}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user