new docker
s444354-training/pipeline/head There was a failure building this commit Details

This commit is contained in:
Adrian Charkiewicz 2022-06-05 17:57:05 +02:00
parent 4458e65034
commit e1bb68aadf
2 changed files with 15 additions and 4 deletions

View File

@ -17,6 +17,10 @@ RUN pip3 install sacred
RUN pip3 install pymongo
RUN pip3 install GitPython
RUN pip3 install mlflow
RUN pip3 install dvc
RUN pip3 install dvc[ssh] paramiko
RUN apt install -y sshpass openssh-client
RUN useradd -r -u 111 jenkins
# RUN python3 -m pip install kaggle
RUN python3 -m pip install pandas

View File

@ -1,6 +1,8 @@
pipeline {
agent {
dockerfile true
docker {
image 'ksero'
}
}
stages {
stage('DVC') {
@ -9,9 +11,14 @@ pipeline {
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 pull'
sh 'dvc repro'}
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'
}
}
}
}