ium_464937/Jenkinsfile
Szymon Bartanowicz d8cdb279ee fix
2024-03-26 19:27:21 +01:00

34 lines
1006 B
Groovy

pipeline {
agent any
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')
}
stages {
stage('Clone repo') {
steps {
git branch: 'main',
git url: "https://git.wmi.amu.edu.pl/s464937/ium_464937"
}
}
stage('Pobierz i przeprocesuj zbiór') {
steps {
withEnv([
"KAGGLE_USERNAME=${env.KAGGLE_USERNAME}",
"KAGGLE_KEY=${env.KAGGLE_KEY}"
]) {
sh "bash ./script1.sh ${params.CUTOFF}"
}
}
}
stage('Archiwizuj') {
steps {
archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true
}
}
}
}