diff --git a/Jenkinsfile_dvc b/Jenkinsfile_dvc index 3d9e6dd..11d7968 100644 --- a/Jenkinsfile_dvc +++ b/Jenkinsfile_dvc @@ -7,19 +7,19 @@ pipeline { } } stages { - stage('checkout: Check out from version control'){ + stage('checkout: Check out from version control'){ steps{ checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '87e24204-a0e1-4840-b235-2b993c922d83', url: 'https://git.wmi.amu.edu.pl/s434804/ium_434804.git']]]) + } + } + stage('install dependencies') { + steps { + sh 'python -m pip install dvc' + sh 'python -m pip install dvc[ssh] paramiko' + } } } - stage('install dependencies') { - steps { - sh 'python -m pip install dvc' - sh 'python -m pip install dvc[ssh] paramiko' - } - } - } - stage('DVC') { + stage('DVC') { steps { withCredentials([string(credentialsId: 'ium-sftp-password', variable: 'IUM_SFTP_PASS')]) { sh "dvc init -f" @@ -27,6 +27,7 @@ pipeline { sh "dvc remote modify --local ium_ssh_remote password $IUM_SFTP_PASS" sh "dvc pull" sh "dvc reproduce" + } } } post {