Jenkinsfile dvc

This commit is contained in:
s434695 2021-06-11 23:35:00 +02:00
parent c7a114129d
commit 8d31a88ae1
2 changed files with 37 additions and 18 deletions

View File

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

23
Jenkinsfile_DVC Normal file
View File

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