update jenkinsfile and dockerfile

This commit is contained in:
Maciej Czajka 2022-04-02 14:12:22 +02:00
parent 56cb67779a
commit ce8b6857c3
2 changed files with 3 additions and 12 deletions

View File

@ -17,7 +17,7 @@ RUN apt-get install unzip
#ENV KAGGLE_USERNAME=maciejczajka #ENV KAGGLE_USERNAME=maciejczajka
#ENV KAGGLE_KEY=d8f044ad2b96d32372e22f9054c02bb1 #ENV KAGGLE_KEY=d8f044ad2b96d32372e22f9054c02bb1
#ENV CUTOFF=1000 ENV CUTOFF=100
ARG KAGGLE_USERNAME ARG KAGGLE_USERNAME
ARG KAGGLE_KEY ARG KAGGLE_KEY
ENV KAGGLE_USERNAME=${KAGGLE_USERNAME} ENV KAGGLE_USERNAME=${KAGGLE_USERNAME}
@ -28,7 +28,5 @@ WORKDIR /app
COPY download.sh . COPY download.sh .
COPY Zajecia_2/main.py . COPY Zajecia_2/main.py .
#RUN ls -al /root/.kaggle/kaggle.json RUN ./download.sh
RUN whoami #CMD ["python3", "./main.py"]
#RUN ./download.sh
CMD ["python3", "./main.py"]

View File

@ -28,15 +28,8 @@ pipeline {
CUTOFF="$params.CUTOFF" CUTOFF="$params.CUTOFF"
} }
stages { 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'){ stage('Script'){
steps { steps {
sh './download.sh'
sh 'python3 ./Zajecia_2/main.py' sh 'python3 ./Zajecia_2/main.py'
} }
} }