2024-03-20 14:34:00 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
2024-03-26 18:56:58 +01:00
|
|
|
parameters {
|
2024-03-26 19:32:48 +01:00
|
|
|
string(name: 'KAGGLE_USERNAME', defaultValue: 'alicjaszulecka', description: 'Kaggle username')
|
2024-03-26 18:56:58 +01:00
|
|
|
password(name: 'KAGGLE_KEY', defaultValue:'', description: 'Kaggle Key')
|
|
|
|
}
|
2024-03-20 14:34:00 +01:00
|
|
|
stages {
|
2024-03-26 18:56:58 +01:00
|
|
|
stage('Git Checkout') {
|
|
|
|
steps {
|
2024-03-26 19:32:48 +01:00
|
|
|
checkout scm
|
2024-03-26 18:56:58 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Cleanup') {
|
2024-03-20 14:34:00 +01:00
|
|
|
steps {
|
2024-03-26 18:56:58 +01:00
|
|
|
sh 'rm -rf artifacts'
|
2024-03-20 14:34:00 +01:00
|
|
|
}
|
|
|
|
}
|
2024-03-26 18:56:58 +01:00
|
|
|
stage('Build') {
|
2024-03-26 19:11:15 +01:00
|
|
|
steps {
|
|
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
2024-03-26 18:56:58 +01:00
|
|
|
|
2024-03-26 19:11:15 +01:00
|
|
|
sh 'bash ./get_dataset.sh'
|
|
|
|
}
|
|
|
|
}
|
2024-03-26 18:56:58 +01:00
|
|
|
}
|
|
|
|
}
|
2024-03-20 14:34:00 +01:00
|
|
|
}
|