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