ium_444517/Jenkinsfile_sacred
2022-05-05 20:07:10 +02:00

40 lines
925 B
Plaintext

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('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'
}
}
}
}
}