jenkinsfile + dvcyaml

This commit is contained in:
eugene 2023-09-29 19:04:16 +02:00
parent 94cb107464
commit f117abde03
2 changed files with 7 additions and 4 deletions

View File

@ -12,10 +12,11 @@ pipeline {
stage("DVC"){
steps{
withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY')]) {
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 pull'}
}
}
stage('Archive Output') {

View File

@ -7,6 +7,8 @@ stages:
- data.csv
train:
cmd: python script5.py
cmd: python script5_3.py
deps:
- data.csv
outs:
- model.pth