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