Compare commits
2 Commits
1bdf2a3a91
...
181017d7ba
Author | SHA1 | Date | |
---|---|---|---|
|
181017d7ba | ||
|
86f2d004b0 |
@ -1,6 +1,8 @@
|
|||||||
[core]
|
[core]
|
||||||
remote = storage
|
remote = ium_ssh_remote
|
||||||
['remote "origin"']
|
['remote "origin"']
|
||||||
url = https://git.wmi.amu.edu.pl/s487187/ium_487187
|
url = https://git.wmi.amu.edu.pl/s487187/ium_487187
|
||||||
['remote "storage"']
|
['remote "storage"']
|
||||||
url = /home/user/dvc_storage
|
url = /home/user/dvc_storage
|
||||||
|
['remote "ium_ssh_remote"']
|
||||||
|
url = ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl
|
||||||
|
@ -44,7 +44,7 @@ pipeline {
|
|||||||
|
|
||||||
stage('Clean DVC Cache') {
|
stage('Clean DVC Cache') {
|
||||||
steps {
|
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 {
|
steps {
|
||||||
withCredentials(
|
withCredentials(
|
||||||
[sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY', passphraseVariable: '', usernameVariable: '')]) {
|
[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 'PATH=$PATH:$HOME/.local/bin/ 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 'PATH=$PATH:$HOME/.local/bin/ dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY'
|
||||||
sh 'dvc pull'}
|
sh 'PATH=$PATH:$HOME/.local/bin/ dvc pull'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -66,13 +67,13 @@ pipeline {
|
|||||||
|
|
||||||
stage('Run DVC Pipeline') {
|
stage('Run DVC Pipeline') {
|
||||||
steps {
|
steps {
|
||||||
sh 'PATH=$PATH:~/.local/bin/ dvc reproduce'
|
sh 'PATH=$PATH:$HOME/.local/bin/ dvc reproduce'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Push DVC Files') {
|
stage('Push DVC Files') {
|
||||||
steps {
|
steps {
|
||||||
sh 'PATH=$PATH:~/.local/bin/ dvc push'
|
sh 'PATH=$PATH:$HOME/.local/bin/ dvc push'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user