ium_444517/Jenkinsfile_sacred

40 lines
925 B
Plaintext
Raw Normal View History

2022-05-05 20:05:14 +02:00
pipeline {
agent {
dockerfile true
}
2022-05-05 20:07:10 +02:00
parameters {
string(
defaultValue: 'kamilab0bkowska',
description: 'kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password(
defaultValue: '',
description: 'kaggle passowrd',
name: 'KAGGLE_KEY'
)
}
2022-05-05 20:05:14 +02:00
stages {
stage('Stage 1') {
steps {
echo 'Hello world!'
}
}
2022-05-05 20:07:10 +02:00
stage('Run sacred on nn_train') {
2022-05-05 20:05:14 +02:00
steps {
2022-05-05 20:07:10 +02:00
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
2022-05-05 20:05:14 +02:00
sh 'python3 ./nn_train_sacred.py'
archiveArtifacts artifacts: 'sacred/_sources/*, sacred/1/*'
sh 'rm -r sacred'
2022-05-05 20:07:10 +02:00
}
2022-05-05 20:05:14 +02:00
}
}
}
}