This commit is contained in:
parent
1171efbec4
commit
563993e596
8
training/Jenkinsfile
vendored
8
training/Jenkinsfile
vendored
@ -32,11 +32,9 @@ pipeline {
|
||||
}
|
||||
|
||||
steps {
|
||||
withCredentials([string(credentialsId: 'ium-sftp-password', variable: 'IUM_SFTP_PASS')]) {
|
||||
sh 'dvc remote add -d -f ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl/ium-sftp'
|
||||
sh 'dvc remote modify --local ium_ssh_remote password $IUM_SFTP_PASS'
|
||||
sh 'dvc pull'
|
||||
sh "chmod +x ./train.py"
|
||||
withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY')]) {
|
||||
sh 'dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY'
|
||||
sh "dvc pull"
|
||||
}
|
||||
sh "python ./train.py --epochs ${params.EPOCHS}"
|
||||
archiveArtifacts artifacts: 'model.keras', onlyIfSuccessful: true
|
||||
|
Loading…
Reference in New Issue
Block a user