From 05e88e5fd47db93fc4ee7b28ef635219fe7e6085 Mon Sep 17 00:00:00 2001 From: Kamil Guttmann Date: Sun, 3 Apr 2022 18:26:37 +0200 Subject: [PATCH] Jenkins docker test --- Dockerfile | 1 + Jenkinsfile | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 16d2083..c3f8983 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ ARG KAGGLE_USERNAME ARG KAGGLE_KEY ARG CUTOFF ENV CUTOFF=${CUTOFF:-260000} +ENV IS_DOCKER=True WORKDIR /app COPY ./download_data.sh calc_stats.sh ./ diff --git a/Jenkinsfile b/Jenkinsfile index d969c84..4f12918 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,6 +18,9 @@ pipeline { name: 'CUTOFF' ) } + agent { + dockerfile true + } stages { stage('Hello') { steps { @@ -36,6 +39,7 @@ pipeline { "CUTOFF=${params.CUTOFF}"]) { sh "./download_data.sh" sh "python3 clean_and_split_data.py" + sh "echo $IS_DOCKER" archiveArtifacts artifacts: "crime.test, crime.dev, crime.train", onlyIfSuccessful: true } }