diff --git a/Dockerfile b/Dockerfile index cc9814b..bccd785 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,6 +30,3 @@ COPY ./skrypt.sh ./ COPY ./zadanie2.py ./ COPY ./zadanie5.py ./ -RUN ./train.py -RUN ./sacred1.py -RUN ./sacred2.py diff --git a/Jenkinsfile b/Jenkinsfile index 0924d7f..37019a1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,26 +22,30 @@ pipeline { ) } stages { - stage('checkout') { - steps { - copyArtifacts fingerprintArtifacts: true, projectName: 's434695-create-dataset', selector: buildParameter('WHICH_BUILD') + stage('copy artifacts') + { + steps + { + copyArtifacts(fingerprintArtifacts: true, projectName: 's434788-create-dataset', selector: buildParameter('WHICH_BUILD')) + } } - } - stage('train') - { - steps + stage('train') + { + steps { catchError { - sh 'python3 train.py ${BATCH_SIZE} ${EPOCHS}' + sh 'python3.8 Zadanie_06_and_07_training.py ${BATCH_SIZE} ${EPOCHS}' } } - } - stage('archiveArtifacts') { + } + + stage('Archive artifacts') { steps{ - archiveArtifacts 'vgsales_model.h5' + archiveArtifacts 'wine_model.h5' + archiveArtifacts 'my_runs/**' } } - } + } post { success { build job: 's434695-evaluation/master' @@ -53,4 +57,4 @@ pipeline { } } -} \ No newline at end of file +}