docker fix

This commit is contained in:
s444417 2022-04-06 18:21:47 +02:00
parent e105573fe5
commit 4e4bd865e0
2 changed files with 7 additions and 3 deletions

View File

@ -20,9 +20,12 @@ COPY ./startscript1.sh ./
COPY ./src/task1python.py ./src/task1python.py
COPY ./src/pythonTest.py ./src/pythonTest.py
# RUN chmod a+x ./startscript1.sh
# RUN chmod a+x ./src/task1python.py
# RUN chmod a+x ./src/pythonTest.py
RUN echo $(ls -1 /tmp/dir)
RUN chmod a+x ./startscript1.sh
RUN chmod a+x ./src/task1python.py
RUN chmod a+x ./src/pythonTest.py
# Domyślne polecenie, które zostanie uruchomione w kontenerze po jego starcie
# RUN chmod u+x ./startscript1.sh

1
Jenkinsfile vendored
View File

@ -25,6 +25,7 @@ pipeline {
}
stage("Shell Scripts") {
steps {
sh "sudo usermod -aG docker jenkins"
sh "KAGGLE_USERNAME=${params.KAGGLE_USERNAME} KAGGLE_KEY=${params.KAGGLE_KEY} CUTOFF=${CUTOFF} ./startscript1.sh"
sh 'python3 ./src/task1python.py'
archiveArtifacts 'data.txt'