JenkinsfileDVC

This commit is contained in:
ulaniuk 2022-06-05 10:29:09 +02:00
parent e35c6903a2
commit ab7d6ec5be
2 changed files with 3 additions and 6 deletions

View File

@ -1,5 +1,7 @@
FROM ubuntu:latest
WORKDIR /app
RUN apt update && apt install -y python3-pip
RUN pip3 install kaggle

View File

@ -14,15 +14,10 @@ pipeline {
stage("DVC"){
steps {
withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY')]) {
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 remote modify --local ium_ssh_remote password IUM@2021'
sh 'dvc remote list'
sh 'cat .dvc/config'
sh 'cat .dvc/config.local'
sh 'dvc pull'
sh 'dvc repro'
sh 'ls -al'
}
}
}