Add automatic trigger train job and archive model file
This commit is contained in:
parent
23bb096029
commit
15ec126240
3
ML/Jenkinsfile
vendored
3
ML/Jenkinsfile
vendored
@ -19,7 +19,7 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Run training') {
|
||||
stage('Run training and save model') {
|
||||
steps {
|
||||
script {
|
||||
sh 'ls -l'
|
||||
@ -27,6 +27,7 @@ pipeline {
|
||||
dir('./ML') {
|
||||
sh 'ls -l'
|
||||
sh 'python3 ./model_train.py'
|
||||
archiveArtifacts 'model.pt'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
5
createDataset/Jenkinsfile
vendored
5
createDataset/Jenkinsfile
vendored
@ -52,6 +52,11 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('triggerTrain') {
|
||||
steps {
|
||||
build job: "z-s487179-train", wait: true
|
||||
}
|
||||
}
|
||||
// stage('Archive file') {
|
||||
// steps {
|
||||
// dir ('./createDataset') {
|
||||
|
Loading…
Reference in New Issue
Block a user