2022-03-21 11:06:31 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
2022-03-27 13:25:02 +02:00
|
|
|
parameters {
|
|
|
|
string(
|
|
|
|
defaultValue: 'kamilab0bkowska',
|
|
|
|
description: '',
|
|
|
|
name: 'KAGGLE_USERNAME',
|
|
|
|
trim: false
|
|
|
|
),
|
|
|
|
password(
|
|
|
|
defaultValue: '',
|
|
|
|
description: '',
|
|
|
|
name: 'KAGGLE_KEY'
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
2022-03-21 11:06:31 +01:00
|
|
|
stages {
|
|
|
|
stage('Stage 1') {
|
|
|
|
steps {
|
|
|
|
echo 'Hello world!'
|
|
|
|
}
|
|
|
|
}
|
2022-03-27 13:25:02 +02:00
|
|
|
stage('Get data save artifacts') {
|
|
|
|
steps {
|
|
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
|
|
|
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
|
|
|
sh 'data_prep.sh'
|
|
|
|
archiveArtifacts artifacts: 'apps_train.csv, apps_test.csv, apps_validate.csv'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-03-21 11:06:31 +01:00
|
|
|
}
|
2022-03-27 13:25:02 +02:00
|
|
|
}
|
|
|
|
|