Zaktualizuj 'Jenkinsfile_dvc'

This commit is contained in:
Kornelia Girejko 2022-06-05 22:09:58 +02:00
parent 71b39a1db1
commit 411d5a3abe

View File

@ -1,9 +1,9 @@
pipeline {
agent {
agent {
docker { image 'korneliag/ium478815:1.0' }
}
}
parameters {
}
parameters {
string(
defaultValue: 'kgirejko',
description: 'Kaggle username',
@ -21,15 +21,15 @@ pipeline {
stages {
stage("dvc"){
steps {
withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY')]) {
sh 'dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY'
sh 'dvc remote modify --local ium_ssh_remote password IUM@2021'
sh 'dvc remote list'
sh 'cat .dvc/config'
sh 'cat .dvc/config.local'
sh 'dvc pull'
sh 'dvc repro'
sh 'ls -al'
withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY')]) {
sh 'dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY'
sh 'dvc remote modify --local ium_ssh_remote password IUM@2021'
sh 'dvc remote list'
sh 'cat .dvc/config'
sh 'cat .dvc/config.local'
sh 'dvc pull'
sh 'dvc repro'
sh 'ls -al'
}
}
}