2022-03-26 17:09:29 +01:00
|
|
|
node {
|
|
|
|
stage('Preparation') {
|
|
|
|
properties ([
|
|
|
|
parameters([
|
|
|
|
string(
|
|
|
|
defaultValue:'mateuszogrodowczyk',
|
|
|
|
description: 'Kaggle username',
|
|
|
|
name: 'KAGGLE_USERNAME',
|
|
|
|
trim: false
|
|
|
|
),
|
|
|
|
password(
|
|
|
|
defaultValue: '',
|
|
|
|
description: 'Kaggle access token retrieved from kaggle.json file - https://github.com/Kaggle/kaggle-api#api-credentials',
|
|
|
|
name: 'KAGGLE_KEY'
|
|
|
|
)
|
|
|
|
])
|
|
|
|
])
|
2022-03-26 15:36:44 +01:00
|
|
|
}
|
2022-03-26 17:09:29 +01:00
|
|
|
|
2022-03-26 17:11:22 +01:00
|
|
|
stage('Install depends.') {
|
|
|
|
sh 'pip install --user -r requirements.txt'
|
2022-03-26 15:36:44 +01:00
|
|
|
}
|
2022-03-26 17:11:22 +01:00
|
|
|
stage('Prepare dataset') {
|
|
|
|
withEnv([
|
|
|
|
"KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}"
|
|
|
|
]) {
|
|
|
|
sh 'echo Welcome: $KAGGLE_USERNAME'
|
|
|
|
sh 'kaggle datasets list'
|
|
|
|
}
|
2022-03-26 17:09:29 +01:00
|
|
|
|
2022-03-26 17:11:22 +01:00
|
|
|
sh 'chmod u+x ./load_data.sh'
|
|
|
|
sh './load_data.sh'
|
|
|
|
}
|
2022-03-26 17:09:29 +01:00
|
|
|
}
|