ium_434784/dvc.Jenkinsfile
Maciej Sobkowiak f403cbba03
Some checks are pending
s434784-evaluation/pipeline/head Build queued...
s434784-training/pipeline/head Build queued...
.
2021-06-12 22:46:52 +02:00

31 lines
1.1 KiB
Plaintext

pipeline {
agent any;
stages{
stage('checkout: Check out from version control') {
steps {
git 'https://git.wmi.amu.edu.pl/s434784/ium_434784'
}
}
stage('dvc') {
steps {
withCredentials(
[sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY', passphraseVariable: '', usernameVariable: '')]) {
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'
// }
// }
}