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

@ -12,4 +12,7 @@ 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
View File

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