Add dvc yaml solution lab10
This commit is contained in:
parent
0bd905830a
commit
a4cf799813
@ -11,12 +11,14 @@ pipeline{
|
||||
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '3e2b5ea1-7a08-4418-892b-c562315036a4', url: 'https://git.wmi.amu.edu.pl/s430705/ium_430705']]])
|
||||
}
|
||||
}
|
||||
|
||||
stage("DVC"){
|
||||
withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY')]) {
|
||||
withCredentials([string(credentialsId: 'ium-sftp-password', variable: 'IUM_SFTP_PASS')]) {
|
||||
sh 'pip install dvc'
|
||||
sh 'pip install dvc[ssh] paramiko'
|
||||
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 init -f"
|
||||
sh "dvc remote add -d ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl/ium-sftp"
|
||||
sh "dvc remote modify --local ium_ssh_remote password $IUM_SFTP_KEY"
|
||||
sh "dvc pull"
|
||||
sh "dvc reproduce"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user