From 41288829758b84e4668d532dc8a465fd27f9f45e Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewski Date: Thu, 5 May 2022 21:38:46 +0200 Subject: [PATCH] Revert "Use archived dataset and trigger training" This reverts commit 3ba963864befc813d0f060e93966d17331080738. --- Jenkinsfile | 10 +++++----- Jenkinsfile-docker | 12 +++--------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7ab7ef3..2d129ab 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,11 +28,11 @@ pipeline { } } } - stage('Archive dataset and run training') { - steps { - archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true - build job: 's444409-training/main/' - } + } + post { + always { + archiveArtifacts artifacts: 'data/*', + onlyIfSuccessful: true } } } diff --git a/Jenkinsfile-docker b/Jenkinsfile-docker index 4145331..17900b6 100644 --- a/Jenkinsfile-docker +++ b/Jenkinsfile-docker @@ -20,22 +20,16 @@ pipeline { } stages { - stage('Get arifacts') { + stage('Run data stats') { steps { - copyArtifacts fingerprintArtifacts: true, projectName: 's444409-create-dataset', selector: lastSuccessful() - } - } - - stage('Train model') { - steps { - sh "python train_model.py" + sh "python power_plant_data_stats.py" } } } post { always { - archiveArtifacts artifacts: 'model_out', + archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true } }