moved chngmod from jenkins to docker file

This commit is contained in:
Adrian Charkiewicz 2022-04-04 10:24:13 +02:00
parent 060b4f7a9d
commit d3b67a5548
2 changed files with 2 additions and 2 deletions

View File

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

1
Jenkinsfile vendored
View File

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