From e8c3530e148ffd188a1e12dba87ca9a911ed365f Mon Sep 17 00:00:00 2001 From: Dawid Date: Sat, 12 Jun 2021 18:21:12 +0200 Subject: [PATCH] fix bracket 2 --- Jenkinsfile_dvc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile_dvc b/Jenkinsfile_dvc index c8f2b3a..3431453 100644 --- a/Jenkinsfile_dvc +++ b/Jenkinsfile_dvc @@ -19,12 +19,14 @@ pipeline { } } stage('DVC') { - withCredentials([string(credentialsId: 'ium-sftp-password', variable: 'IUM_SFTP_PASS')]) { - sh "dvc init -f" - 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 password $IUM_SFTP_PASS" - sh "dvc pull" - sh "dvc reproduce" + steps { + withCredentials([string(credentialsId: 'ium-sftp-password', variable: 'IUM_SFTP_PASS')]) { + sh "dvc init -f" + 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 password $IUM_SFTP_PASS" + sh "dvc pull" + sh "dvc reproduce" + } } } }