2024-03-20 14:35:23 +01:00
|
|
|
pipeline {
|
2024-04-09 18:03:50 +02:00
|
|
|
agent { dockerfile true }
|
2024-04-02 23:13:26 +02:00
|
|
|
|
2024-04-02 22:53:09 +02:00
|
|
|
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')
|
|
|
|
}
|
|
|
|
|
2024-03-24 14:39:33 +01:00
|
|
|
stages {
|
|
|
|
stage('Clone Repository') {
|
|
|
|
steps {
|
2024-03-24 19:10:02 +01:00
|
|
|
git url: "https://git.wmi.amu.edu.pl/s464979/ium_464979"
|
2024-03-24 14:39:33 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Download, Process, and Split Dataset') {
|
2024-04-02 22:47:08 +02:00
|
|
|
steps {
|
2024-03-24 14:39:33 +01:00
|
|
|
withEnv([
|
2024-04-02 22:36:11 +02:00
|
|
|
"KAGGLE_USERNAME=${env.KAGGLE_USERNAME}",
|
2024-03-24 14:39:33 +01:00
|
|
|
"KAGGLE_KEY=${env.KAGGLE_KEY}"
|
|
|
|
]) {
|
2024-04-09 18:03:50 +02:00
|
|
|
sh 'export KAGGLE_USERNAME=${env.KAGGLE_USERNAME}"'
|
|
|
|
sh 'export KAGGLE_KEY=${env.KAGGLE_KEY}"'
|
2024-04-02 22:47:08 +02:00
|
|
|
sh "python3 IUM_02.py"
|
|
|
|
}
|
|
|
|
}
|
2024-03-24 14:39:33 +01:00
|
|
|
}
|
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:40:11 +01:00
|
|
|
}
|
|
|
|
}
|
2024-03-24 18:54:40 +01:00
|
|
|
// post {
|
|
|
|
// always {
|
|
|
|
// deleteDir()
|
|
|
|
// }
|
|
|
|
// }
|
2024-03-24 14:39:33 +01:00
|
|
|
}
|