1
This commit is contained in:
parent
4785ba0f5b
commit
0710ae8d0b
@ -13,3 +13,6 @@ RUN pip install --user sklearn
|
|||||||
COPY KaggleV2-May-2016.csv ./
|
COPY KaggleV2-May-2016.csv ./
|
||||||
COPY create_data.py ./
|
COPY create_data.py ./
|
||||||
COPY stats_data.py ./
|
COPY stats_data.py ./
|
||||||
|
|
||||||
|
CMD python create_data.py
|
||||||
|
CMD python stats.py
|
25
Jenkinsfile
vendored
25
Jenkinsfile
vendored
@ -11,16 +11,10 @@ pipeline {
|
|||||||
description: 'Kaggle username',
|
description: 'Kaggle username',
|
||||||
name: 'KAGGLE_USERNAME'
|
name: 'KAGGLE_USERNAME'
|
||||||
)
|
)
|
||||||
string(
|
|
||||||
defaultValue: '10',
|
|
||||||
description: 'Value for head command',
|
|
||||||
name: 'CUTOFF'
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
environment {
|
environment {
|
||||||
KAGGLE_USERNAME="$params.KAGGLE_USERNAME"
|
KAGGLE_USERNAME="$params.KAGGLE_USERNAME"
|
||||||
KAGGLE_KEY="$params.KAGGLE_KEY"
|
KAGGLE_KEY="$params.KAGGLE_KEY"
|
||||||
CUTOFF="$params.CUTOFF"
|
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
@ -33,22 +27,11 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("Data Preparation") {
|
stage ("Build Docker") {
|
||||||
agent {
|
steps {
|
||||||
dockerfile {
|
sh 'docker build -t ium .'
|
||||||
additionalBuildArgs '-t ium'
|
|
||||||
args '-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME} -e KAGGLE_KEY=${params.KAGGLE_KEY}'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
sh "python create_data.py"
|
|
||||||
archiveArtifacts 'KaggleV2-May-2016.csv'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage("Statistics") {
|
|
||||||
steps {
|
|
||||||
sh "python stats.py"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user