revert jenkinsfile

This commit is contained in:
Sheaza 2024-05-28 21:51:15 +02:00
parent 4ade71964d
commit ee86949bef

View File

@ -32,10 +32,7 @@ pipeline {
} }
steps { steps {
withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY')]) { sh "chmod +x ./train.py"
sh 'dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY'
sh "dvc pull"
}
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
} }