add remote and files

This commit is contained in:
piotr6789 2021-06-11 19:03:42 +02:00
parent 30148a81c8
commit 47f7fc45e9
5 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,4 @@
[core]
remote = my_local_remote
['remote "my_local_remote"']
url = /dvcstore

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/courses-dvc.csv

4
courses-dvc.csv.dvc Normal file
View File

@ -0,0 +1,4 @@
outs:
- md5: fcc5513f58a7ace02694308f2756a444
size: 2009041
path: courses-dvc.csv

7
dvc.yaml Normal file
View File

@ -0,0 +1,7 @@
stages:
preprocess:
cmd: python ./init.py
stats:
cmd: python ./stats.py
split:
cmd: ./bash.sh

37
dvc/Jenkinsfile vendored Normal file
View File

@ -0,0 +1,37 @@
pipeline {
agent {
dockerfile true
}
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'WHICH_BUILD'
)
}
stages {
stage('checkout: Check out from version control') {
steps {
git 'https://git.wmi.amu.edu.pl/s434700/ium_s440058.git'
}
}
stage("DVC"){
withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY')]) {
sh 'ssh ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl -i $IUM_SFTP_KEY'
sh 'dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY'
sh "dvc pull"
}
}
}
post {
success {
build job: 's440058-dvc'
mail body: 'SUCCESS TRAINING', subject: 's440058', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
failure {
mail body: 'FAILURE TRAINING', subject: 's440058', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
}
}