DVC Jenkins fix

This commit is contained in:
Andrzej Preibisz 2022-05-29 15:07:06 +02:00
parent f8f841c344
commit 93fa20b793
2 changed files with 30 additions and 1 deletions

View File

@ -1,4 +1,4 @@
[core]
remote = ium_ssh_remote
['remote "ium_ssh_remote"']
url = ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl/ium-sftp
url = ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl

29
Jenkinsfile.dvc_repo Normal file
View File

@ -0,0 +1,29 @@
pipeline {
agent {
dockerfile true
}
parameters {
string(
defaultValue: "10",
description: 'Number of epochs in training',
name: 'NO_OF_EPOCHS'
)
}
stages {
stage("Git clone") {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444465', url: 'https://git.wmi.amu.edu.pl/s444465/ium_444465']]])
}
}
stage("Run DVC") {
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'
}
}
}
}
}