Add automatic trigger train job and archive model file

This commit is contained in:
s487179 2023-06-11 11:38:25 +02:00
parent 23bb096029
commit 15ec126240
2 changed files with 7 additions and 1 deletions

3
ML/Jenkinsfile vendored
View File

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

View File

@ -52,6 +52,11 @@ pipeline {
}
}
}
stage('triggerTrain') {
steps {
build job: "z-s487179-train", wait: true
}
}
// stage('Archive file') {
// steps {
// dir ('./createDataset') {