2022-03-31 23:28:10 +02:00
|
|
|
pipeline {
|
2022-04-01 23:36:30 +02:00
|
|
|
parameters {
|
|
|
|
string(
|
|
|
|
defaultValue: 'heatedboss2',
|
|
|
|
description: 'Kaggle username',
|
|
|
|
name: 'KAGGLE_USERNAME',
|
|
|
|
trim: false
|
|
|
|
)
|
|
|
|
password(
|
|
|
|
defaultValue: '',
|
|
|
|
description: 'Kaggle token',
|
|
|
|
name: 'KAGGLE_KEY'
|
|
|
|
)
|
2022-04-01 23:47:17 +02:00
|
|
|
string(
|
|
|
|
defaultValue: '117928',
|
|
|
|
description: 'Cutoff',
|
|
|
|
name: 'CUTOFF',
|
|
|
|
trim: false
|
|
|
|
)
|
2022-04-01 23:36:30 +02:00
|
|
|
}
|
|
|
|
agent {
|
|
|
|
dockerfile{
|
2022-04-01 23:42:07 +02:00
|
|
|
additionalBuildArgs '--build-arg KAGGLE_USERNAME="$KAGGLE_USERNAME" --build-arg KAGGLE_KEY="$KAGGLE_KEY"'
|
2022-04-01 23:36:30 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stages {
|
2022-04-01 23:47:17 +02:00
|
|
|
stage('Prepare dataset') {
|
2022-04-01 23:36:30 +02:00
|
|
|
steps {
|
2022-04-02 03:30:08 +02:00
|
|
|
sh 'python3 -m pip install kaggle --no-cache-dir '
|
|
|
|
sh 'python3 -m pip install numpy --no-cache-dir '
|
|
|
|
sh 'python3 -m pip install pandas --no-cache-dir '
|
2022-04-02 03:24:58 +02:00
|
|
|
sh 'python3 ./script.py'
|
2022-04-01 23:36:30 +02:00
|
|
|
}
|
2022-03-31 23:28:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|