This commit is contained in:
parent
15afa91f97
commit
51a7e448ae
18
Jenkinsfile_dataset_for_LAB6
Normal file
18
Jenkinsfile_dataset_for_LAB6
Normal 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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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
8
lab6/Jenkinsfile
vendored
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user