diff --git a/Jenkinsfile_dataset_for_LAB6 b/Jenkinsfile_dataset_for_LAB6 new file mode 100644 index 0000000..2823ec2 --- /dev/null +++ b/Jenkinsfile_dataset_for_LAB6 @@ -0,0 +1,18 @@ +pipeline { + agent { + dockerfile true + } + stages { + stage('Stage 1') { + steps { + sh 'chmod u+x ./process_dataset.py' + echo 'Processing dataset...' + sh 'python3 process_dataset.py' + echo 'Dataset processed' + echo 'Archiving clean train and test datasets...' + archiveArtifacts artifacts: 'lego_sets_clean_train.csv, lego_sets_clean_test.csv' + echo 'Datasets archived' + } + } + } +} \ No newline at end of file diff --git a/lab6/Dockerfile b/lab6/Dockerfile index d021e3a..40e17a3 100644 --- a/lab6/Dockerfile +++ b/lab6/Dockerfile @@ -11,6 +11,4 @@ RUN pip3 install tensorflow RUN pip3 install matplotlib RUN pip3 install keras -COPY ./lego_sets.csv ./ -COPY ./process_dataset.py ./ COPY ./simple_regression.py ./ diff --git a/lab6/Jenkinsfile b/lab6/Jenkinsfile index 08a308c..af5e588 100644 --- a/lab6/Jenkinsfile +++ b/lab6/Jenkinsfile @@ -5,10 +5,10 @@ pipeline { stages { stage('Stage 1') { steps { - sh 'chmod u+x ./process_dataset.py ./simple_regression.py' - echo 'Processing dataset...' - sh 'python3 process_dataset.py' - echo 'Dataset processed' + sh 'chmod u+x ./simple_regression.py' + echo 'Copying datasets from create-dataset...' + copyArtifacts filter: '*', projectName: 's449288-create-dataset' + echo 'Datasets copied' echo 'Conducting simple regression model test' sh 'python3 simple_regression.py' echo 'Model predictions saved'