Compare commits

...

2 Commits

Author SHA1 Message Date
Jakub Zaręba 181017d7ba s 2023-05-24 18:43:17 +02:00
Jakub Zaręba 86f2d004b0 s 2023-05-24 18:08:41 +02:00
2 changed files with 10 additions and 7 deletions

View File

@ -1,6 +1,8 @@
[core]
remote = storage
remote = ium_ssh_remote
['remote "origin"']
url = https://git.wmi.amu.edu.pl/s487187/ium_487187
['remote "storage"']
url = /home/user/dvc_storage
['remote "ium_ssh_remote"']
url = ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl

View File

@ -44,7 +44,7 @@ pipeline {
stage('Clean DVC Cache') {
steps {
sh 'PATH=$PATH:~/.local/bin/ dvc gc -c -w -f'
sh 'PATH=$PATH:$HOME/.local/bin/ dvc gc -c -w -f'
}
}
@ -52,9 +52,10 @@ pipeline {
steps {
withCredentials(
[sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY', passphraseVariable: '', usernameVariable: '')]) {
sh 'dvc remote add -d ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl/ium-sftp'
sh 'dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY'
sh 'dvc pull'}
sh 'PATH=$PATH:$HOME/.local/bin/ dvc remote add -d ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl/ium-sftp'
sh 'PATH=$PATH:$HOME/.local/bin/ dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY'
sh 'PATH=$PATH:$HOME/.local/bin/ dvc pull'
}
}
}
@ -66,13 +67,13 @@ pipeline {
stage('Run DVC Pipeline') {
steps {
sh 'PATH=$PATH:~/.local/bin/ dvc reproduce'
sh 'PATH=$PATH:$HOME/.local/bin/ dvc reproduce'
}
}
stage('Push DVC Files') {
steps {
sh 'PATH=$PATH:~/.local/bin/ dvc push'
sh 'PATH=$PATH:$HOME/.local/bin/ dvc push'
}
}
}