t
This commit is contained in:
parent
3f803ca909
commit
382a84a90c
@ -1,4 +1,4 @@
|
||||
FROM python:3.7
|
||||
FROM ubuntu:latest
|
||||
|
||||
WORKDIR /
|
||||
|
||||
@ -17,7 +17,9 @@ RUN pip install --user seaborn
|
||||
COPY KaggleV2-May-2016.csv ./
|
||||
COPY create_data.py ./
|
||||
COPY stats_data.py ./
|
||||
COPY stats_data.py ./
|
||||
COPY train_model.py ./
|
||||
|
||||
CMD ["python", "train_model.py"]
|
||||
|
||||
# CMD ["python", "create_data.py"]
|
||||
# CMD ["python", "stats_data.py"]
|
||||
|
36
Jenkinsfile
vendored
36
Jenkinsfile
vendored
@ -1,5 +1,4 @@
|
||||
pipeline {
|
||||
agent any
|
||||
parameters{
|
||||
password(
|
||||
defaultValue: '',
|
||||
@ -22,8 +21,13 @@ pipeline {
|
||||
KAGGLE_KEY="$params.KAGGLE_KEY"
|
||||
CUTOFF="$params.CUTOFF"
|
||||
}
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
agent
|
||||
{
|
||||
dockerfile true
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
script {
|
||||
git credentialsId: 'jenkins-user-github', url: 'https://git.wmi.amu.edu.pl/s478855/ium_478855.git'
|
||||
@ -33,27 +37,15 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("Build docker") {
|
||||
stage("Preparation") {
|
||||
steps {
|
||||
sh 'echo "BUILD DOCKER"'
|
||||
sh 'docker build -t ium .'
|
||||
}
|
||||
}
|
||||
stage("Data Preparation") {
|
||||
steps {
|
||||
sh 'echo "DATA PREPARATION"'
|
||||
sh "chmod u+x ./preparation.sh"
|
||||
sh "./preparation.sh"
|
||||
archiveArtifacts 'KaggleV2-May-2016.csv'
|
||||
sh "./preparation.sh"
|
||||
archiveArtifacts 'KaggleV2-May-2016.csv'
|
||||
archiveArtifacts 'data_description.csv'
|
||||
archiveArtifacts 'train_dataset.csv'
|
||||
archiveArtifacts 'test_dataset.csv'
|
||||
}
|
||||
}
|
||||
stage("Statistics") {
|
||||
steps {
|
||||
sh 'echo "STATISTICS"'
|
||||
sh "chmod u+x ./statistics.sh"
|
||||
sh "./statistics.sh"
|
||||
archiveArtifacts 'statistics.csv'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
0
Jenkinsfile2
Normal file
0
Jenkinsfile2
Normal file
1
preparation.sh
Normal file
1
preparation.sh
Normal file
@ -0,0 +1 @@
|
||||
python ./scripts/create_data.py
|
@ -1 +0,0 @@
|
||||
echo "Preparation inner"
|
@ -1 +0,0 @@
|
||||
wc -l KaggleV2-May-2016.csv >> statistics.csv
|
1
statistics.sh
Normal file
1
statistics.sh
Normal file
@ -0,0 +1 @@
|
||||
python ./scripts/statistics.py
|
Loading…
Reference in New Issue
Block a user