Jenkins docker test
This commit is contained in:
parent
f73705bb68
commit
05e88e5fd4
@ -4,6 +4,7 @@ ARG KAGGLE_USERNAME
|
|||||||
ARG KAGGLE_KEY
|
ARG KAGGLE_KEY
|
||||||
ARG CUTOFF
|
ARG CUTOFF
|
||||||
ENV CUTOFF=${CUTOFF:-260000}
|
ENV CUTOFF=${CUTOFF:-260000}
|
||||||
|
ENV IS_DOCKER=True
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY ./download_data.sh calc_stats.sh ./
|
COPY ./download_data.sh calc_stats.sh ./
|
||||||
|
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -18,6 +18,9 @@ pipeline {
|
|||||||
name: 'CUTOFF'
|
name: 'CUTOFF'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
agent {
|
||||||
|
dockerfile true
|
||||||
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Hello') {
|
stage('Hello') {
|
||||||
steps {
|
steps {
|
||||||
@ -36,6 +39,7 @@ pipeline {
|
|||||||
"CUTOFF=${params.CUTOFF}"]) {
|
"CUTOFF=${params.CUTOFF}"]) {
|
||||||
sh "./download_data.sh"
|
sh "./download_data.sh"
|
||||||
sh "python3 clean_and_split_data.py"
|
sh "python3 clean_and_split_data.py"
|
||||||
|
sh "echo $IS_DOCKER"
|
||||||
archiveArtifacts artifacts: "crime.test, crime.dev, crime.train", onlyIfSuccessful: true
|
archiveArtifacts artifacts: "crime.test, crime.dev, crime.train", onlyIfSuccessful: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user