From 204f5bcfec31ece1a709200a97620da0634e06ca Mon Sep 17 00:00:00 2001 From: s444417 Date: Tue, 3 May 2022 14:20:21 +0200 Subject: [PATCH] archive model --- Dockerfile | 2 +- Jenkinsfile3 | 7 ++++++- README.md | 10 ++++++++++ runPythonScripts.sh | 3 --- startscript1.sh | 3 ++- 5 files changed, 19 insertions(+), 6 deletions(-) delete mode 100644 runPythonScripts.sh diff --git a/Dockerfile b/Dockerfile index 6f734ed..21f45c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ COPY . . RUN chmod o+wrx ./startscript1.sh -RUN chmod o+wrx ./runPythonScripts.sh +RUN chmod o+wrx ./startscript2.sh RUN ./startscript1.sh diff --git a/Jenkinsfile3 b/Jenkinsfile3 index 1026726..bcaed47 100644 --- a/Jenkinsfile3 +++ b/Jenkinsfile3 @@ -1,12 +1,17 @@ pipeline { agent { dockerfile true } stages { - stage('Test') { + stage('Copy') { steps { copyArtifacts projectName: 's444417-create-dataset' sh 'ls -la' } } + stage('archive model') { + steps { + archiveArtifacts 'saved_model/my_model' + } + } } post { always { diff --git a/README.md b/README.md index fcb71fe..8782461 100644 --- a/README.md +++ b/README.md @@ -1 +1,11 @@ ## Projekt na przedmiot inżynieria oprogramowania +IUM_6 +--- +Zadanie 1 +1. stworzono job [s444417-training](https://tzietkiewicz.vm.wmi.amu.edu.pl:8080/job/s444417-training/) +2. s444417-training uruchamia się automatycznie po zakończeniu joba s444417-create-dataset, plik "Jenkinsfile", przy pomocy build job. Kopiuje zbiór danych przy pomocy copyArtifact w pliku "Jenkinsfile3" +3. "Jenkinsfile3" archiveArtifacts linia 12 +4. Powiadomienia, "Jenkinsfile3" linia 11 +5. Parametr podany jest w pliku "startscript1.sh" w linii 11, przy wołaniu skryptu uruchamiającego uczenie "startscript2.sh", parametr oznacza ilość epok + +Zadanie 2 diff --git a/runPythonScripts.sh b/runPythonScripts.sh deleted file mode 100644 index 4d88b03..0000000 --- a/runPythonScripts.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -python3 ./src/task1python.py -python3 ./src/trainScript.py 6 \ No newline at end of file diff --git a/startscript1.sh b/startscript1.sh index 0fdee98..aa73b12 100644 --- a/startscript1.sh +++ b/startscript1.sh @@ -7,4 +7,5 @@ unzip house-price-dataset.zip # head -n $CUTOFF ./Participants_Data_HPP/Train.csv > data.txt # head -n $CUTOFF ./Participants_Data_HPP/Test.csv > dataTest.txt -./runPythonScripts.sh \ No newline at end of file +python3 ./src/task1python.py +python3 ./src/trainScript.py 6 \ No newline at end of file