From ba5164177e810cbfe2bc02b51788caaa442308ff Mon Sep 17 00:00:00 2001 From: s424714 Date: Tue, 23 May 2023 12:49:13 +0200 Subject: [PATCH] fix: jenkinsfile-dvc --- Dockerfile | 4 ++-- Jenkinsfile-dvc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8193d72..9d0d605 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,9 +14,9 @@ COPY environment.yml /tmp/environment.yml RUN mamba env create -f /tmp/environment.yml && mamba clean -ya RUN echo "mamba activate ium" >> ~/.bashrc ENV PATH /opt/conda/envs/ium/bin:$PATH -RUN pip install 'dvc[ssh]' paramiko +# RUN pip install 'dvc[ssh]' paramiko -RUN useradd -r -u 111 jenkins +# RUN useradd -r -u 111 jenkins COPY src ./src #make dir for data diff --git a/Jenkinsfile-dvc b/Jenkinsfile-dvc index 96e83a9..b42a0c3 100644 --- a/Jenkinsfile-dvc +++ b/Jenkinsfile-dvc @@ -9,9 +9,9 @@ node { sh "chmod +x -R ${env.WORKSPACE}" def dockerImage = docker.build("s424714-model:latest") - withCredentials([string(credentialsId: 'ium-sftp-password', variable: 'IUM_SFTP_PASS')]) { dockerImage.inside { + withCredentials([string(credentialsId: 'ium-sftp-password', variable: 'IUM_SFTP_PASS')]) { sh 'dvc remote modify --local ium_ssh_remote password $IUM_SFTP_PASS' sh 'dvc pull' sh 'dvc repro'