From 8d31a88ae102a96c00ea2b8b256fbc0929f56f5e Mon Sep 17 00:00:00 2001 From: s434695 Date: Fri, 11 Jun 2021 23:35:00 +0200 Subject: [PATCH] Jenkinsfile dvc --- Dockerfile | 32 ++++++++++++++------------------ Jenkinsfile_DVC | 23 +++++++++++++++++++++++ 2 files changed, 37 insertions(+), 18 deletions(-) create mode 100644 Jenkinsfile_DVC diff --git a/Dockerfile b/Dockerfile index ca762b9..6bdafa0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,24 +1,20 @@ # Nasz obraz będzie dzidziczył z obrazu Ubuntu w wersji latest FROM ubuntu:latest - # Instalujemy niezbędne zależności. Zwróć uwagę na flagę "-y" (assume yes) RUN apt update && apt install -y figlet RUN apt install -y git RUN apt install -y python3-pip -RUN pip3 install --user kaggle -RUN pip3 install --user pandas -RUN pip3 install --user numpy -RUN pip3 install --user seaborn -RUN pip3 install --user sklearn -RUN pip3 install --user matplotlib -RUN pip3 install --user tensorflow -RUN pip3 install --user wget - -WORKDIR /app - -COPY ./skrypt.sh ./ -COPY ./zadanie2.py ./ -COPY ./zadanie5.py ./ - -CMD ./zadanie2.py -CMD ./zadanie5.py +RUN pip3 install setuptools +RUN pip3 install kaggle +RUN pip3 install pandas +RUN pip3 install numpy +RUN pip3 install seaborn +RUN pip3 install sklearn +RUN pip3 install matplotlib +RUN pip3 install tensorflow +RUN pip3 install sacred +RUN pip3 install wget +RUN pip3 install keras +RUN pip3 install GitPython +RUN pip3 install pymongo +RUN pip3 install mlflow \ No newline at end of file diff --git a/Jenkinsfile_DVC b/Jenkinsfile_DVC new file mode 100644 index 0000000..5ccc07e --- /dev/null +++ b/Jenkinsfile_DVC @@ -0,0 +1,23 @@ +pipeline { + agent { dockerfile true } + stages { + stage('Test') { + steps { + sh 'dvc remote add -f -d ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl/ium-sftp' + sh 'dvc remote list' + sh 'dvc remote modify --local ium_ssh_remote password IUM@2021' + sh 'dvc pull' + sh "dvc reproduce" + } + } + } + post { + success { + archiveArtifacts 'sample.txt' + + mail body: 'SUCCESS', + subject: 's434695 DVC', + to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms' + } + } +} \ No newline at end of file