work on lab6
s449288-training/pipeline/head This commit looks good Details

This commit is contained in:
Kacper Dudzic 2022-04-24 16:04:46 +02:00
parent 15afa91f97
commit 51a7e448ae
3 changed files with 22 additions and 6 deletions

View File

@ -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'
}
}
}
}

View File

@ -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 ./

8
lab6/Jenkinsfile vendored
View File

@ -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'