From f8bb45091f911c1e64687782c909d15129bb1317 Mon Sep 17 00:00:00 2001 From: Kacper Dudzic Date: Sun, 29 May 2022 17:17:36 +0200 Subject: [PATCH] Update 'lab10/Jenkinsfile_dvc' --- lab10/Jenkinsfile_dvc | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/lab10/Jenkinsfile_dvc b/lab10/Jenkinsfile_dvc index e98665f..6245e39 100644 --- a/lab10/Jenkinsfile_dvc +++ b/lab10/Jenkinsfile_dvc @@ -8,7 +8,22 @@ pipeline { stages { stage('Stage 1') { steps { - + echo 'Checking out and switching to repo' + checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 'f695fe86-8cca-47f7-a546-d3bfd1059fd4', url: 'https://git.wmi.amu.edu.pl/s449288/ium_s449288.git']]]) + sh 'cd ium_s449288' + echo 'In ium_s449288 now' + echo 'Creating dvc remote' + withCredentials([string(credentialsId: 'ium-sftp-password', variable: 'IUM_SFTP_PASS')]) { + sh 'dvc remote add -f -d ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl' + sh 'dvc remote modify --local ium_ssh_remote password $IUM_SFTP_PASS' + echo 'Remote created' + echo 'Pulling from dvc' + sh 'dvc pull' + echo 'Files pulled' + echo 'Running pipeline' + sh 'dvc repro' + echo 'Finished' + } } } }