2024-03-26 17:53:46 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
2024-03-26 19:21:06 +01:00
|
|
|
|
|
|
|
parameters {
|
|
|
|
string(name: 'CUTOFF', defaultValue: '100', description: 'Ilość wierszy do odcięcia')
|
|
|
|
string(name: 'KAGGLE_USERNAME', defaultValue: '', description: 'Kaggle username')
|
|
|
|
password(name: 'KAGGLE_KEY', defaultValue: '', description: 'Kaggle API key')
|
|
|
|
}
|
|
|
|
|
2024-03-26 17:53:46 +01:00
|
|
|
stages {
|
2024-03-26 19:21:06 +01:00
|
|
|
stage('Clone repo') {
|
|
|
|
steps {
|
2024-03-26 19:28:34 +01:00
|
|
|
git branch: "main", git url: "https://git.wmi.amu.edu.pl/s464937/ium_464937"
|
2024-03-26 19:21:06 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Pobierz i przeprocesuj zbiór') {
|
|
|
|
steps {
|
|
|
|
withEnv([
|
|
|
|
"KAGGLE_USERNAME=${env.KAGGLE_USERNAME}",
|
|
|
|
"KAGGLE_KEY=${env.KAGGLE_KEY}"
|
|
|
|
]) {
|
|
|
|
sh "bash ./script1.sh ${params.CUTOFF}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-03-26 19:27:21 +01:00
|
|
|
stage('Archiwizuj') {
|
2024-03-26 17:53:46 +01:00
|
|
|
steps {
|
2024-03-26 19:21:06 +01:00
|
|
|
archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true
|
2024-03-26 17:53:46 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-03-26 19:22:34 +01:00
|
|
|
}
|