This commit is contained in:
ulaniuk 2022-04-03 22:07:58 +02:00
parent 4785ba0f5b
commit 0710ae8d0b
2 changed files with 8 additions and 22 deletions

View File

@ -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
View File

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