train model
Some checks failed
s444452-training/pipeline/head There was a failure building this commit
Some checks failed
s444452-training/pipeline/head There was a failure building this commit
This commit is contained in:
parent
d8805311b4
commit
df03835740
@ -31,7 +31,6 @@ node {
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||
"KAGGLE_KEY=${params.KAGGLE_KEY}","CUTOFF=${params.CUTOFF}"]) {
|
||||
sh "python3 Scripts/download_dataset.py '.' 'dataset.csv'"
|
||||
sh "python3 Scripts/train_neural_network.py '.'"
|
||||
}
|
||||
}
|
||||
stage('Archive artifacts') {
|
||||
|
21
Jenkins/Jenkinsfile.training
Normal file
21
Jenkins/Jenkinsfile.training
Normal file
@ -0,0 +1,21 @@
|
||||
node {
|
||||
checkout scm
|
||||
docker.image('s444452/ium:1.3').inside {
|
||||
stage('Preparation') {
|
||||
properties([
|
||||
parameters([
|
||||
string(
|
||||
defaultValue: ".",
|
||||
description: 'Arguments for model training: arg1,arg2,arg3',
|
||||
name: 'TRAIN_ARGS'
|
||||
)
|
||||
])
|
||||
])
|
||||
}
|
||||
stage('Run script') {
|
||||
withEnv(["TRAIN_ARGS=${params.TRAIN_ARGS}"]) {
|
||||
sh "python3 Scripts/train_neural_network.py $TRAIN_ARGS"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user