From 2fb186feb5a12feed7965861842326c0bff0b6a1 Mon Sep 17 00:00:00 2001 From: Maciej Czajka Date: Mon, 4 Apr 2022 08:18:16 +0200 Subject: [PATCH] update jenkinsfile and dockerfile --- Dockerfile | 2 +- Jenkinsfile_docker2 | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 00db461..b806367 100755 --- a/Dockerfile +++ b/Dockerfile @@ -25,4 +25,4 @@ COPY download.sh . COPY Zajecia_2/main.py . RUN ./download.sh -#CMD ["python3", "./main.py"] +RUN ["python3", "./main.py"] diff --git a/Jenkinsfile_docker2 b/Jenkinsfile_docker2 index 5354744..fd4671e 100644 --- a/Jenkinsfile_docker2 +++ b/Jenkinsfile_docker2 @@ -14,8 +14,9 @@ pipeline { stages { stage("Script") { steps { - sh "./stats.sh" - sh "python3 ./Zajecia_2/main.py" + copyArtifacts fingerprintArtifacts: true, projectName: 's444356-create-dataset', selector: buildParameter('BUILD_SELECTOR') + sh " ./stats.sh" + archiveArtifacts 'lines.txt' } } }