ium_452662/Jenkinsfile_dvc

27 lines
688 B
Plaintext
Raw Normal View History

2023-05-13 12:03:35 +02:00
pipeline {
agent any
stages {
stage('Clone repository') {
steps {
2023-05-13 12:08:55 +02:00
sh 'cd ium_452662'
2023-05-13 12:03:35 +02:00
}
}
stage('Download DVC files') {
steps {
2023-05-13 12:15:12 +02:00
withCredentials([string(credentialsId: 'ium-sftp-password', variable: 'IUM_SFTP_PASS')]) {
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'
2023-05-13 12:03:35 +02:00
sh 'dvc pull'
2023-05-13 12:15:12 +02:00
}
2023-05-13 12:03:35 +02:00
}
}
stage('Run DVC') {
steps {
sh 'dvc reproduce'
}
}
}
}