fix 2
s464980-training/pipeline/head There was a failure building this commit Details

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') {
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'
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.API_KEY}"]) {
sh "kaggle datasets download -d nikhil7280/student-performance-multiple-linear-regression --unzip"
}
}
}

View File

@ -32,7 +32,12 @@ pipeline {
}
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 "python ./train.py --epochs ${params.EPOCHS}"
archiveArtifacts artifacts: 'model.keras', onlyIfSuccessful: true
}