From ab7d6ec5bef2365954c82108e69e024b1a72fe0d Mon Sep 17 00:00:00 2001 From: ulaniuk Date: Sun, 5 Jun 2022 10:29:09 +0200 Subject: [PATCH] JenkinsfileDVC --- Dockerfile | 2 ++ JenkinsfileDVC | 7 +------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 15583bc..be08587 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM ubuntu:latest +WORKDIR /app + RUN apt update && apt install -y python3-pip RUN pip3 install kaggle diff --git a/JenkinsfileDVC b/JenkinsfileDVC index edb0b2b..ee25630 100644 --- a/JenkinsfileDVC +++ b/JenkinsfileDVC @@ -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' } } }