lab6
All checks were successful
s434766-training/pipeline/head This commit looks good

This commit is contained in:
s434766 2021-04-23 17:33:06 +02:00
parent 1558c8c6c4
commit e4b54adf07
2 changed files with 39 additions and 0 deletions

10
pytorch/Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM ubuntu:latest
RUN apt-get update && apt-get install -y python3-pip && pip3 install setuptools && pip3 install numpy && pip3 install pandas && pip3 install wget && pip3 install scikit-learn && rm -rf /var/lib/apt/lists/*
RUN pip3 install torch torchvision torchaudio
WORKDIR /app
COPY ./create.py ./
COPY ./stats.py ./
COPY ./stroke-pytorch.py ./

29
pytorch/Jenkinsfile vendored Normal file
View File

@ -0,0 +1,29 @@
pipeline {
agent {
dockerfile true
}
stages {
stage('checkout') {
steps {
git 'https://git.wmi.amu.edu.pl/s434766/ium_434766.git'
copyArtifacts fingerprintArtifacts: true, projectName: 's434766-create-dataset'
}
}
stage('Docker'){
steps{
sh 'python3 "./stroke-pytorch.py" > model.txt'
}
}
stage('checkout: Check out from version control') {
steps {
git 'https://git.wmi.amu.edu.pl/s434766/ium_434766.git'
}
}
stage('archiveArtifacts') {
steps {
archiveArtifacts 'model.txt'
archiveArtifacts 'stroke.pkl'
}
}
}
}