From ce8b6857c3a25abedcc27f70017e4fd83eda6f9b Mon Sep 17 00:00:00 2001 From: Maciej Czajka Date: Sat, 2 Apr 2022 14:12:22 +0200 Subject: [PATCH] update jenkinsfile and dockerfile --- Dockerfile | 8 +++----- Jenkinsfile_docker | 7 ------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index 383e052..1907604 100755 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,7 @@ RUN apt-get install unzip #ENV KAGGLE_USERNAME=maciejczajka #ENV KAGGLE_KEY=d8f044ad2b96d32372e22f9054c02bb1 -#ENV CUTOFF=1000 +ENV CUTOFF=100 ARG KAGGLE_USERNAME ARG KAGGLE_KEY ENV KAGGLE_USERNAME=${KAGGLE_USERNAME} @@ -28,7 +28,5 @@ WORKDIR /app COPY download.sh . COPY Zajecia_2/main.py . -#RUN ls -al /root/.kaggle/kaggle.json -RUN whoami -#RUN ./download.sh -CMD ["python3", "./main.py"] +RUN ./download.sh +#CMD ["python3", "./main.py"] diff --git a/Jenkinsfile_docker b/Jenkinsfile_docker index a26f7ca..8b854f4 100644 --- a/Jenkinsfile_docker +++ b/Jenkinsfile_docker @@ -28,15 +28,8 @@ pipeline { CUTOFF="$params.CUTOFF" } stages { - stage('Checkout'){ - steps { - checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444356', url: 'https://git.wmi.amu.edu.pl/s444356/ium_444356.git']]]) - } - } - stage('Script'){ steps { - sh './download.sh' sh 'python3 ./Zajecia_2/main.py' } }