32 lines
1003 B
Groovy
32 lines
1003 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
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')
|
|
}
|
|
|
|
stages {
|
|
stage('Clone Repository') {
|
|
steps {
|
|
git url: "https://git.wmi.amu.edu.pl/s464979/ium_464979.git"
|
|
}
|
|
}
|
|
|
|
stage('Download, Process, and Split Dataset') {
|
|
steps {
|
|
withEnv([
|
|
"KAGGLE_USERNAME=${env.KAGGLE_USERNAME}",
|
|
"KAGGLE_KEY=${env.KAGGLE_KEY}"
|
|
]) {
|
|
echo ${env.KAGGLE_USERNAME}
|
|
echo ${env.KAGGLE_KEY}
|
|
sh "bash ./kuggle_download.sh ${params.CUTOFF}"
|
|
sh './kuggle_download.sh'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|