ium_s449288/lab10/Jenkinsfile_dvc

19 lines
768 B
Plaintext
Raw Normal View History

2022-05-23 10:58:50 +02:00
pipeline {
agent {
2022-05-30 12:10:35 +02:00
dockerfile{
dir 'lab10'
}
2022-05-30 12:09:36 +02:00
}
2022-05-23 10:58:50 +02:00
stages {
2022-05-30 12:09:36 +02:00
stage('Dvc pull and reproduce') {
steps {
2022-05-30 12:13:26 +02:00
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']]])
2022-05-30 12:09:36 +02:00
withCredentials(
2022-05-30 11:40:42 +02:00
[sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY', passphraseVariable: '', usernameVariable: 'USER')]) {
2022-05-30 12:16:37 +02:00
sh 'dvc remote add -f -d ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl'
2022-05-30 11:40:42 +02:00
sh 'dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY'
2022-05-30 12:03:05 +02:00
sh 'dvc pull'}
2022-05-30 12:09:36 +02:00
}
}
2022-05-23 10:58:50 +02:00
}
2022-05-30 12:09:36 +02:00
}