Jenkinsfile for dvc
This commit is contained in:
parent
b3a363f6ca
commit
4655158328
31
dvc.Jenkinsfile
Normal file
31
dvc.Jenkinsfile
Normal file
@ -0,0 +1,31 @@
|
||||
pipeline {
|
||||
agent any;
|
||||
|
||||
stages{
|
||||
stage('checkout') {
|
||||
steps {
|
||||
git 'https://git.wmi.amu.edu.pl/s434784/ium_s434784.git'
|
||||
}
|
||||
}
|
||||
|
||||
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'
|
||||
// }
|
||||
// }
|
||||
}
|
Loading…
Reference in New Issue
Block a user