ium_444517/Jenkinsfile
2022-04-19 16:38:55 +02:00

40 lines
1.0 KiB
Groovy

pipeline {
agent {
dockerfile true
}
parameters {
string(
defaultValue: 'kamilab0bkowska',
description: 'kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password(
defaultValue: '',
description: 'kaggle passowrd',
name: 'KAGGLE_KEY'
)
}
stages {
stage('Stage 1') {
steps {
echo 'Hello world!'
}
}
stage('Get data save artifacts') {
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh 'python3 ./data_expl.py'
sh 'python3 ./nn_train.py'
archiveArtifacts artifacts: 'apps_train.csv, apps_test.csv, apps_validate.csv, results.txt'
}
}
}
}
}