sacred hw

This commit is contained in:
Kamila 2022-05-05 20:07:10 +02:00
parent 67f0cc47fc
commit cd60d306fe

View File

@ -3,6 +3,20 @@ pipeline {
dockerfile true dockerfile true
} }
parameters {
string(
defaultValue: 'kamilab0bkowska',
description: 'kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password(
defaultValue: '',
description: 'kaggle passowrd',
name: 'KAGGLE_KEY'
)
}
stages { stages {
stage('Stage 1') { stage('Stage 1') {
steps { steps {
@ -10,13 +24,14 @@ pipeline {
} }
} }
stage('Run sacred on nn_train ') { stage('Run sacred on nn_train') {
steps { steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
sh 'python3 ./nn_train_sacred.py' sh 'python3 ./nn_train_sacred.py'
archiveArtifacts artifacts: 'sacred/_sources/*, sacred/1/*' archiveArtifacts artifacts: 'sacred/_sources/*, sacred/1/*'
sh 'rm -r sacred' sh 'rm -r sacred'
}
} }
} }
} }