2024-03-26 10:43:23 +01:00
|
|
|
pipeline {
|
2024-03-26 22:14:47 +01:00
|
|
|
agent any
|
|
|
|
|
|
|
|
parameters {
|
|
|
|
string(
|
|
|
|
defaultValue: '10000',
|
|
|
|
name: 'CUTOFF',
|
|
|
|
description: 'Liczba wierszy do obcięcia ze zbioru danych')
|
|
|
|
string(
|
|
|
|
defaultValue: '',
|
|
|
|
name: 'KAGGLE_USERNAME',
|
|
|
|
description: 'Kaggle username')
|
|
|
|
password(
|
|
|
|
defaultValue: '',
|
|
|
|
name: 'KAGGLE_KEY',
|
|
|
|
description: 'Kaggle API key')
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Clone Repository') {
|
|
|
|
steps {
|
2024-03-26 23:04:58 +01:00
|
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/main']], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s464962/ium_464962']]])
|
2024-03-26 22:14:47 +01:00
|
|
|
}
|
|
|
|
}
|
2024-03-26 23:56:02 +01:00
|
|
|
|
2024-03-26 22:14:47 +01:00
|
|
|
stage('Download') {
|
|
|
|
steps {
|
|
|
|
withEnv([
|
|
|
|
"KAGGLE_USERNAME=${env.KAGGLE_USERNAME}",
|
|
|
|
"KAGGLE_KEY=${env.KAGGLE_KEY}"
|
|
|
|
]) {
|
|
|
|
sh "bash ./create-dataset.sh ${params.CUTOFF}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Archive Results') {
|
|
|
|
steps {
|
|
|
|
archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-03-26 23:56:02 +01:00
|
|
|
}
|