jenkinsfile dvc
Some checks failed
Some checks failed
This commit is contained in:
parent
54ce588c87
commit
99f9a39d12
28
Jenkinsfile_dvc
Normal file
28
Jenkinsfile_dvc
Normal file
@ -0,0 +1,28 @@
|
||||
pipeline {
|
||||
agent {
|
||||
docker { image 's444507_create_dataset_image' }
|
||||
}
|
||||
parameters {
|
||||
buildSelector(defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts.', name: 'BUILD_SELECTOR')
|
||||
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
|
||||
|
||||
}
|
||||
stages {
|
||||
stage('DVC') {
|
||||
steps {
|
||||
withCredentials(
|
||||
[sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY', passphraseVariable: '', usernameVariable: '')]) {
|
||||
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 repro'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
archiveArtifacts artifacts: 'prediction_results.csv, *.pkl', followSymlinks: false
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user