This commit is contained in:
Jakub Zaręba 2023-05-24 18:43:17 +02:00
parent 86f2d004b0
commit 181017d7ba

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