początek zadań z lab6
All checks were successful
s449288-training/pipeline/head This commit looks good

This commit is contained in:
Kacper Dudzic 2022-04-24 15:07:23 +02:00
parent 8cbd80adec
commit 15afa91f97
2 changed files with 35 additions and 0 deletions

16
lab6/Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM ubuntu:latest
WORKDIR /ium
RUN apt update && apt install -y python3-pip
RUN pip3 install pandas
RUN pip3 install numpy
RUN pip3 install sklearn
RUN pip3 install tensorflow
RUN pip3 install matplotlib
RUN pip3 install keras
COPY ./lego_sets.csv ./
COPY ./process_dataset.py ./
COPY ./simple_regression.py ./

19
lab6/Jenkinsfile vendored Normal file
View File

@ -0,0 +1,19 @@
pipeline {
agent {
dockerfile true
}
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'
echo 'Conducting simple regression model test'
sh 'python3 simple_regression.py'
echo 'Model predictions saved'
sh 'head lego_linreg_results.csv'
}
}
}
}