diff --git a/Jenkinsfile_dvc b/Jenkinsfile_dvc index 107a137..5a73924 100644 --- a/Jenkinsfile_dvc +++ b/Jenkinsfile_dvc @@ -10,20 +10,14 @@ pipeline { stages { stage('DVC') { steps { + checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 'S444507_cred', url: 'https://git.wmi.amu.edu.pl/s444507/ium_444507.git']]]) withCredentials( - [sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY', passphraseVariable: '', usernameVariable: '')]) { - sh 'dvc remote add -f -d ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl' + [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 remote modify --local ium_ssh_remote password IUM@2021' sh 'dvc pull' sh 'dvc repro' } } } } - post { - success { - archiveArtifacts artifacts: 'prediction_results.csv, *.pkl', followSymlinks: false - } - } } \ No newline at end of file