From 750a9f3703fd35d16c8d4923f278381e8afd2c78 Mon Sep 17 00:00:00 2001 From: Kacper Dudzic Date: Mon, 30 May 2022 12:09:36 +0200 Subject: [PATCH] Update 'lab10/Jenkinsfile_dvc' --- lab10/Jenkinsfile_dvc | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/lab10/Jenkinsfile_dvc b/lab10/Jenkinsfile_dvc index ba97baa..dd3abc6 100644 --- a/lab10/Jenkinsfile_dvc +++ b/lab10/Jenkinsfile_dvc @@ -1,24 +1,16 @@ pipeline { agent { - dockerfile { - dir 'lab10' - args '-v /dvcstore' - } - } + dockerfile true + } stages { - stage('Stage 1') { - steps { - 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']]]) - echo 'Cloning and switching to repo' - /* sh 'git clone https://git.wmi.amu.edu.pl/s449288/ium_s449288.git' - już raz wykonane*/ - /*sh 'cd ium_s449288'*/ - echo 'In ium_s449288 now' - echo 'Creating dvc remote' - withCredentials( + stage('Dvc pull and reproduce') { + steps { + checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's449288', url: 'https://git.wmi.amu.edu.pl/s449288/ium_449288.git']]]) +withCredentials( [sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY', passphraseVariable: '', usernameVariable: 'USER')]) { sh 'dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY' sh 'dvc pull'} - } - } - } + } + } } +} \ No newline at end of file