2021-06-12 22:42:33 +02:00
|
|
|
pipeline {
|
2021-06-12 23:12:41 +02:00
|
|
|
agent {
|
|
|
|
dockerfile true
|
|
|
|
}
|
2021-06-12 22:42:33 +02:00
|
|
|
|
|
|
|
stages{
|
2021-06-12 22:45:50 +02:00
|
|
|
stage('checkout: Check out from version control') {
|
2021-06-12 22:42:33 +02:00
|
|
|
steps {
|
2021-06-12 22:45:50 +02:00
|
|
|
git 'https://git.wmi.amu.edu.pl/s434784/ium_434784'
|
|
|
|
}
|
|
|
|
}
|
2021-06-12 22:42:33 +02:00
|
|
|
|
|
|
|
stage('dvc') {
|
|
|
|
steps {
|
|
|
|
withCredentials(
|
2021-06-12 23:21:58 +02:00
|
|
|
[sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY')]) {
|
2021-06-12 22:42:33 +02:00
|
|
|
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 keyfile $IUM_SFTP_KEY"
|
|
|
|
sh "dvc pull"
|
|
|
|
sh "dvc reproduce"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// stage('send-mail') {
|
|
|
|
// steps{
|
|
|
|
// emailext body: currentBuild.result ?: 'SUCCESS',
|
|
|
|
// subject: 's434784-training',
|
|
|
|
// to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
}
|