Jenkins DVC credentials
This commit is contained in:
parent
c273e4c4ee
commit
cf24e497e5
@ -8,13 +8,16 @@ pipeline {
|
||||
}
|
||||
stage('docker') {
|
||||
steps {
|
||||
script {
|
||||
def img = docker.build('rokoch/ium:01')
|
||||
img.inside {
|
||||
sh 'dvc remote add -f -d ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl/ium-sftp'
|
||||
sh 'dvc remote modify --local ium_ssh_remote password IUM@2021'
|
||||
sh 'dvc pull'
|
||||
sh 'dvc reproduce'
|
||||
withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY', passphraseVariable: '', usernameVariable: '')])
|
||||
{
|
||||
script {
|
||||
def img = docker.build('rokoch/ium:01')
|
||||
img.inside {
|
||||
sh 'dvc remote add -f -d ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl/ium-sftp'
|
||||
sh 'dvc remote modify --local ium_ssh_remote password IUM@2021'
|
||||
sh 'dvc pull'
|
||||
sh 'dvc reproduce'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user