diff --git a/.dvc/config b/.dvc/config index e69de29..ce375a8 100644 --- a/.dvc/config +++ b/.dvc/config @@ -0,0 +1,4 @@ +[core] + remote = ium_ssh_remote +['remote "ium_ssh_remote"'] + url = ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl diff --git a/Jenkinsfile b/Jenkinsfile index 63166b8..65d61cc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -30,8 +30,11 @@ pipeline { } stage('Download dataset') { steps { - withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.API_KEY}"]) { - sh "kaggle datasets download -d nikhil7280/student-performance-multiple-linear-regression --unzip" + withCredentials([string(credentialsId: 'ium-sftp-password', variable: 'IUM_SFTP_PASS')]) { + 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' + } } } }