Jenkins docker test

This commit is contained in:
Kamil Guttmann 2022-04-03 18:26:37 +02:00
parent f73705bb68
commit 05e88e5fd4
2 changed files with 5 additions and 0 deletions

View File

@ -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 ./

4
Jenkinsfile vendored
View File

@ -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
}
}