diff --git a/ML/Jenkinsfile b/ML/Jenkinsfile index 980f03f..07baea4 100644 --- a/ML/Jenkinsfile +++ b/ML/Jenkinsfile @@ -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' } } } diff --git a/createDataset/Jenkinsfile b/createDataset/Jenkinsfile index bae5771..967874a 100644 --- a/createDataset/Jenkinsfile +++ b/createDataset/Jenkinsfile @@ -52,6 +52,11 @@ pipeline { } } } + stage('triggerTrain') { + steps { + build job: "z-s487179-train", wait: true + } + } // stage('Archive file') { // steps { // dir ('./createDataset') {