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:47:41 +02:00
|
|
|
withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY', usernameVariable: 'USER')]) {
|
|
|
|
sh 'ls -lh'
|
2022-05-30 11:40:42 +02:00
|
|
|
sh 'dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY'
|
2022-05-30 12:47:41 +02:00
|
|
|
sh 'dvc pull'
|
2022-05-30 12:31:17 +02:00
|
|
|
}
|
2022-05-30 12:09:36 +02:00
|
|
|
}
|
|
|
|
}
|
2022-05-23 10:58:50 +02:00
|
|
|
}
|
2022-05-30 12:09:36 +02:00
|
|
|
}
|