JenkinsfileDVC
This commit is contained in:
parent
e35c6903a2
commit
ab7d6ec5be
@ -1,5 +1,7 @@
|
|||||||
FROM ubuntu:latest
|
FROM ubuntu:latest
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
RUN apt update && apt install -y python3-pip
|
RUN apt update && apt install -y python3-pip
|
||||||
|
|
||||||
RUN pip3 install kaggle
|
RUN pip3 install kaggle
|
||||||
|
@ -14,15 +14,10 @@ pipeline {
|
|||||||
|
|
||||||
stage("DVC"){
|
stage("DVC"){
|
||||||
steps {
|
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 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 pull'
|
||||||
sh 'dvc repro'
|
sh 'dvc repro'
|
||||||
sh 'ls -al'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user