fix 2
Some checks failed
s464980-training/pipeline/head There was a failure building this commit

This commit is contained in:
Sheaza 2024-05-28 21:32:24 +02:00
parent d59cfab424
commit 45c3c425d2
2 changed files with 7 additions and 5 deletions

7
Jenkinsfile vendored
View File

@ -30,11 +30,8 @@ pipeline {
} }
stage('Download dataset') { stage('Download dataset') {
steps { steps {
withCredentials([string(credentialsId: 'ium-sftp-password', variable: 'IUM_SFTP_PASS')]) { withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.API_KEY}"]) {
sh 'dvc remote add -d ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl/ium-sftp' sh "kaggle datasets download -d nikhil7280/student-performance-multiple-linear-regression --unzip"
sh 'dvc remote modify --local ium_ssh_remote password $IUM_SFTP_PASS'
sh 'dvc pull'
} }
} }
} }

View File

@ -32,7 +32,12 @@ pipeline {
} }
steps { steps {
withCredentials([string(credentialsId: 'ium-sftp-password', variable: 'IUM_SFTP_PASS')]) {
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 password $IUM_SFTP_PASS'
sh 'dvc pull'
sh "chmod +x ./train.py" 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
} }