2022-04-02 15:36:46 +02:00
|
|
|
pipeline {
|
|
|
|
parameters{
|
|
|
|
string(
|
|
|
|
defaultValue: 'kaerde',
|
|
|
|
description: 'Kaggle username',
|
|
|
|
name: 'KAGGLE_USERNAME',
|
|
|
|
trim: false
|
|
|
|
)
|
|
|
|
password(
|
|
|
|
defaultValue: 'e3fdd794699dbaf3ca7517dd8bb15d16',
|
|
|
|
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
|
|
|
name: 'KAGGLE_KEY'
|
|
|
|
)
|
|
|
|
}
|
|
|
|
agent {
|
2022-04-02 16:40:30 +02:00
|
|
|
dockerfile true
|
2022-04-02 15:36:46 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Stage 1') {
|
|
|
|
steps {
|
2022-04-02 16:40:30 +02:00
|
|
|
sh 'chmod u+x ./process_dataset.py'
|
2022-04-02 15:36:46 +02:00
|
|
|
echo 'Dataset downloaded'
|
|
|
|
echo 'Processing dataset...'
|
|
|
|
sh 'python3 process_dataset.py'
|
|
|
|
echo 'Dataset processed'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|