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 create_data.py ./
|
||||
COPY stats_data.py ./
|
||||
|
||||
CMD python create_data.py
|
||||
CMD python stats.py
|
23
Jenkinsfile
vendored
23
Jenkinsfile
vendored
@ -11,16 +11,10 @@ pipeline {
|
||||
description: 'Kaggle username',
|
||||
name: 'KAGGLE_USERNAME'
|
||||
)
|
||||
string(
|
||||
defaultValue: '10',
|
||||
description: 'Value for head command',
|
||||
name: 'CUTOFF'
|
||||
)
|
||||
}
|
||||
environment {
|
||||
KAGGLE_USERNAME="$params.KAGGLE_USERNAME"
|
||||
KAGGLE_KEY="$params.KAGGLE_KEY"
|
||||
CUTOFF="$params.CUTOFF"
|
||||
}
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
@ -33,21 +27,10 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("Data Preparation") {
|
||||
agent {
|
||||
dockerfile {
|
||||
additionalBuildArgs '-t ium'
|
||||
args '-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME} -e KAGGLE_KEY=${params.KAGGLE_KEY}'
|
||||
}
|
||||
}
|
||||
stage ("Build Docker") {
|
||||
steps {
|
||||
sh "python create_data.py"
|
||||
archiveArtifacts 'KaggleV2-May-2016.csv'
|
||||
}
|
||||
}
|
||||
stage("Statistics") {
|
||||
steps {
|
||||
sh "python stats.py"
|
||||
sh 'docker build -t ium .'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user