2023-04-19 18:59:56 +02:00
|
|
|
node {
|
2023-04-19 19:50:03 +02:00
|
|
|
stage('Preparation') {
|
|
|
|
properties([
|
|
|
|
parameters([
|
|
|
|
string(
|
|
|
|
defaultValue: 'login',
|
|
|
|
description: 'Kaggle username',
|
|
|
|
name: 'KAGGLE_USERNAME',
|
|
|
|
trim: false
|
|
|
|
),
|
|
|
|
password(
|
|
|
|
defaultValue: '',
|
|
|
|
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
|
|
|
name: 'KAGGLE_KEY'
|
|
|
|
),
|
|
|
|
string(
|
|
|
|
defaultValue: '7999',
|
|
|
|
description: 'Cut off value',
|
|
|
|
name: 'CUT',
|
|
|
|
trim: false
|
|
|
|
)
|
|
|
|
])
|
|
|
|
])
|
|
|
|
}
|
|
|
|
stage('checkout: Check out from version control') {
|
|
|
|
checkout scm
|
|
|
|
}
|
|
|
|
stage('Build Docker image') {
|
2023-04-19 19:51:51 +02:00
|
|
|
sh 'docker build -t wujt89 -f Dockerfile .'
|
2023-04-19 19:50:03 +02:00
|
|
|
}
|
|
|
|
stage('sh: Shell Script') {
|
2023-04-19 19:51:51 +02:00
|
|
|
sh 'docker run -v ${env.WORKSPACE}/artifacts:/app/artifacts wujt89 python3 ./create_dataset.py'
|
2023-04-19 19:50:03 +02:00
|
|
|
}
|
2023-04-19 18:03:00 +02:00
|
|
|
}
|