This commit is contained in:
parent
d59cfab424
commit
45c3c425d2
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
5
training/Jenkinsfile
vendored
5
training/Jenkinsfile
vendored
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user