update jenkinsfile and dockerfile
This commit is contained in:
parent
56cb67779a
commit
ce8b6857c3
@ -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"]
|
||||
|
@ -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'
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user