46 lines
1.2 KiB
Groovy
46 lines
1.2 KiB
Groovy
pipeline {
|
|
parameters {
|
|
string(name: 'CUTOFF', defaultValue: '10000', description: 'Liczba wierszy do obcięcia ze zbioru danych')
|
|
string(name: 'KAGGLE_USERNAME', defaultValue: '', description: 'Kaggle username')
|
|
password(name: 'KAGGLE_KEY', defaultValue: '', description: 'Kaggle API key')
|
|
}
|
|
|
|
agent {
|
|
dockerfile {
|
|
args '--build-arg="KAGGLE_KEY=${env.KAGGLE_KEY}" --build-arg="KAGGLE_USERNAME=${env.KAGGLE_USERNAME}"'
|
|
reuseNode true
|
|
}
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
stage('Clone Repository') {
|
|
steps {
|
|
git url: "https://git.wmi.amu.edu.pl/s464979/ium_464979"
|
|
}
|
|
}
|
|
|
|
stage('Download, Process, and Split Dataset') {
|
|
steps {
|
|
withEnv([
|
|
"KAGGLE_USERNAME=${env.KAGGLE_USERNAME}",
|
|
"KAGGLE_KEY=${env.KAGGLE_KEY}"
|
|
]) {
|
|
sh "python3 IUM_02.py"
|
|
}
|
|
}
|
|
}
|
|
stage('Archive Results') {
|
|
steps {
|
|
archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true
|
|
}
|
|
}
|
|
}
|
|
// post {
|
|
// always {
|
|
// deleteDir()
|
|
// }
|
|
// }
|
|
}
|