From 0804770f6b9cc3bd2c4cb70a0d7bd033259d5acd Mon Sep 17 00:00:00 2001 From: Jakub Henyk Date: Sat, 13 May 2023 18:30:36 +0200 Subject: [PATCH] PLIS PLIS --- Dockerfile_4 | 2 -- Jenkinsfile_6 | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile_4 b/Dockerfile_4 index 3c9518c..48bf197 100644 --- a/Dockerfile_4 +++ b/Dockerfile_4 @@ -30,6 +30,4 @@ RUN chmod +x ./test.py RUN useradd -r -u 111 jenkins -#RUN export GIT_PYTHON_GIT_EXECUTABLE=/mingw64/bin/git -RUN dvc pull RUN dvc repro \ No newline at end of file diff --git a/Jenkinsfile_6 b/Jenkinsfile_6 index 7925d4b..77c05c4 100644 --- a/Jenkinsfile_6 +++ b/Jenkinsfile_6 @@ -7,6 +7,10 @@ pipeline { stages { stage('Archive Output') { steps { + withCredentials([string(credentialsId: 'ium-sftp-password', variable: 'IUM_SFTP_PASS')]) { + sh 'dvc remote add -d ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl/ium-sftp' + sh 'dvc remote modify --local ium_ssh_remote password $IUM_SFTP_KEY' + sh 'dvc pull' archiveArtifacts 'metrics.txt' } }