2022-03-21 11:06:31 +01:00
|
|
|
pipeline {
|
2022-04-03 11:39:13 +02:00
|
|
|
agent {
|
2022-04-19 16:35:19 +02:00
|
|
|
dockerfile true
|
2022-04-03 11:39:13 +02:00
|
|
|
}
|
2022-03-27 13:25:02 +02:00
|
|
|
parameters {
|
|
|
|
string(
|
|
|
|
defaultValue: 'kamilab0bkowska',
|
2022-03-27 14:00:17 +02:00
|
|
|
description: 'kaggle username',
|
2022-03-27 13:25:02 +02:00
|
|
|
name: 'KAGGLE_USERNAME',
|
|
|
|
trim: false
|
2022-03-27 13:27:01 +02:00
|
|
|
)
|
2022-03-27 13:25:02 +02:00
|
|
|
password(
|
2022-04-19 16:19:09 +02:00
|
|
|
defaultValue: '',
|
2022-03-27 14:00:17 +02:00
|
|
|
description: 'kaggle passowrd',
|
2022-03-27 13:25:02 +02:00
|
|
|
name: 'KAGGLE_KEY'
|
|
|
|
)
|
|
|
|
}
|
2022-03-27 14:02:26 +02:00
|
|
|
|
2022-03-21 11:06:31 +01:00
|
|
|
stages {
|
|
|
|
stage('Stage 1') {
|
|
|
|
steps {
|
|
|
|
echo 'Hello world!'
|
|
|
|
}
|
|
|
|
}
|
2022-03-27 13:39:11 +02:00
|
|
|
|
2022-03-27 13:25:02 +02:00
|
|
|
stage('Get data save artifacts') {
|
|
|
|
steps {
|
|
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
2022-04-03 11:39:13 +02:00
|
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
2022-03-27 13:25:02 +02:00
|
|
|
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
2022-04-03 13:49:46 +02:00
|
|
|
sh 'python3 ./data_expl.py'
|
2022-04-19 16:35:19 +02:00
|
|
|
sh 'python3 ./nn_train.py'
|
2022-04-03 13:49:46 +02:00
|
|
|
archiveArtifacts artifacts: 'apps_train.csv, apps_test.csv, apps_validate.csv'
|
2022-03-27 13:25:02 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-03-21 11:06:31 +01:00
|
|
|
}
|
2022-03-27 13:25:02 +02:00
|
|
|
}
|
|
|
|
|