ium_464979/Jenkinsfile

39 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-03-20 14:35:23 +01:00
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 {
2024-03-24 19:10:02 +01:00
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 "bash ./kuggle_download.sh ${params.CUTOFF}"
}
}
}
2024-03-24 18:54:40 +01:00
stage('Archive Results') {
steps {
2024-03-24 19:02:45 +01:00
archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true
2024-03-24 18:54:40 +01:00
}
}
}
2024-03-24 18:54:40 +01:00
// post {
// always {
// deleteDir()
// }
// }
}