sacred hw

This commit is contained in:
Kamila 2022-05-05 20:07:10 +02:00
parent 67f0cc47fc
commit cd60d306fe
1 changed files with 18 additions and 3 deletions

View File

@ -3,6 +3,20 @@ pipeline {
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 {
@ -10,13 +24,14 @@ pipeline {
}
}
stage('Run sacred on nn_train ') {
stage('Run sacred on nn_train') {
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
sh 'python3 ./nn_train_sacred.py'
archiveArtifacts artifacts: 'sacred/_sources/*, sacred/1/*'
sh 'rm -r sacred'
}
}
}
}