From d3b67a55489d592f0e38f8d77e3c05fff9c758ee Mon Sep 17 00:00:00 2001 From: Adrian Charkiewicz Date: Mon, 4 Apr 2022 10:24:13 +0200 Subject: [PATCH] moved chngmod from jenkins to docker file --- Dockerfile | 3 ++- Jenkinsfile | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e0cc8b3..9b90036 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,8 @@ RUN pip3 install pandas RUN pip3 install scikit-learn RUN pip3 install matplotlib RUN mkdir ~/.kaggle/ -RUN echo '{"username":"riraasaa","key":"1b1376b538ecd7da9e79b94d218ae3ec"}' > ~/.kaggle/kaggle.json +#RUN echo '{"username":"riraasaa","key":"1b1376b538ecd7da9e79b94d218ae3ec"}' > ~/.kaggle/kaggle.json +RUN sh chmod a+x ./script.sh # Create app directory in image WORKDIR /app # Copy init dataset script to /app directory in image diff --git a/Jenkinsfile b/Jenkinsfile index 2087530..e923388 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -35,7 +35,6 @@ pipeline { } stage("Shell Script") { steps { - sh "chmod u+x ./script.sh" sh "KAGGLE_USERNAME=${KAGGLE_USERNAME} KAGGLE_KEY=${KAGGLE_KEY} CUTOFF=${CUTOFF} ./script.sh" archiveArtifacts 'TEST_winequality-red.csv' archiveArtifacts 'TRAIN_winequality-red.csv'