2024-03-20 14:35:23 +01:00
|
|
|
pipeline {
|
2024-03-24 14:39:33 +01:00
|
|
|
agent any
|
|
|
|
|
|
|
|
parameters {
|
2024-03-24 14:43:10 +01:00
|
|
|
string(name: 'CUTOFF', defaultValue: '10000', description: 'Liczba wierszy do obcięcia ze zbioru danych')
|
2024-03-24 15:45:33 +01:00
|
|
|
string(name: 'KAGGLE_USERNAME', defaultValue: '', description: 'Kaggle username')
|
2024-03-24 14:56:25 +01:00
|
|
|
password(name: 'KAGGLE_KEY', defaultValue: '', description: 'Kaggle API key')
|
2024-03-24 14:39:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Clone Repository') {
|
|
|
|
steps {
|
2024-03-24 15:45:33 +01:00
|
|
|
git url: "https://git.wmi.amu.edu.pl/s464979/ium_464979.git"
|
2024-03-24 14:39:33 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Download, Process, and Split Dataset') {
|
|
|
|
steps {
|
|
|
|
withEnv([
|
|
|
|
"KAGGLE_USERNAME=${env.KAGGLE_USERNAME}",
|
|
|
|
"KAGGLE_KEY=${env.KAGGLE_KEY}"
|
|
|
|
]) {
|
2024-03-24 18:02:15 +01:00
|
|
|
echo ${env.KAGGLE_USERNAME}
|
|
|
|
echo ${env.KAGGLE_KEY}
|
|
|
|
sh "bash ./kuggle_download.sh ${params.CUTOFF}"
|
2024-03-24 14:39:33 +01:00
|
|
|
sh './kuggle_download.sh'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|