From 8d5ebbe7d29b46325bf5dc27f894d4338d42124b Mon Sep 17 00:00:00 2001 From: s464962 Date: Sun, 5 May 2024 22:04:24 +0200 Subject: [PATCH 1/4] Update Dockerfile --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 75abf39..a1efb07 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,6 @@ RUN pip install numpy tensorflow scikit-learn kaggle pandas WORKDIR /app -COPY kaggle.json /root/.kaggle/kaggle.json COPY ./create-dataset.sh ./ RUN dos2unix ./create-dataset.sh COPY ./model.py ./ From c5448c5a80ab4db60822053626d0732fead27345 Mon Sep 17 00:00:00 2001 From: s464962 Date: Sun, 5 May 2024 22:31:51 +0200 Subject: [PATCH 2/4] Update Jenkinsfile --- Jenkinsfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 2be7fad..f2f43a4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -35,6 +35,21 @@ pipeline { } } } + stage('Train and predict') { + agent { + dockerfile { + filename 'Dockerfile' + reuseNode true + } + } + steps { + sh "chmod +x ./model.py" + sh "chmod +x ./predict.py" + sh "python ./model.py" + sh "python .predict.py" + archiveArtifacts artifacts: 'predicted_selling_prices.csv', onlyIfSuccessful: true + } + } stage('Archive Results') { steps { archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true From cfde3804eb9a01b876e8d74a95a7a26906154004 Mon Sep 17 00:00:00 2001 From: s464962 Date: Sun, 5 May 2024 22:35:20 +0200 Subject: [PATCH 3/4] Update Jenkinsfile --- Jenkinsfile | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f2f43a4..8cdbbcd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -36,12 +36,6 @@ pipeline { } } stage('Train and predict') { - agent { - dockerfile { - filename 'Dockerfile' - reuseNode true - } - } steps { sh "chmod +x ./model.py" sh "chmod +x ./predict.py" From 93c0381a3af1ecfaf22f5edd816639a216b5c799 Mon Sep 17 00:00:00 2001 From: s464962 Date: Sun, 5 May 2024 22:43:11 +0200 Subject: [PATCH 4/4] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8cdbbcd..66dcda6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -40,7 +40,7 @@ pipeline { sh "chmod +x ./model.py" sh "chmod +x ./predict.py" sh "python ./model.py" - sh "python .predict.py" + sh "python ./predict.py" archiveArtifacts artifacts: 'predicted_selling_prices.csv', onlyIfSuccessful: true } }