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 matplotlib
|
||||||
RUN pip3 install keras
|
RUN pip3 install keras
|
||||||
|
|
||||||
COPY ./lego_sets.csv ./
|
|
||||||
COPY ./process_dataset.py ./
|
|
||||||
COPY ./simple_regression.py ./
|
COPY ./simple_regression.py ./
|
||||||
|
8
lab6/Jenkinsfile
vendored
8
lab6/Jenkinsfile
vendored
@ -5,10 +5,10 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('Stage 1') {
|
stage('Stage 1') {
|
||||||
steps {
|
steps {
|
||||||
sh 'chmod u+x ./process_dataset.py ./simple_regression.py'
|
sh 'chmod u+x ./simple_regression.py'
|
||||||
echo 'Processing dataset...'
|
echo 'Copying datasets from create-dataset...'
|
||||||
sh 'python3 process_dataset.py'
|
copyArtifacts filter: '*', projectName: 's449288-create-dataset'
|
||||||
echo 'Dataset processed'
|
echo 'Datasets copied'
|
||||||
echo 'Conducting simple regression model test'
|
echo 'Conducting simple regression model test'
|
||||||
sh 'python3 simple_regression.py'
|
sh 'python3 simple_regression.py'
|
||||||
echo 'Model predictions saved'
|
echo 'Model predictions saved'
|
||||||
|
Loading…
Reference in New Issue
Block a user