This commit is contained in:
s444501 2022-06-04 20:45:18 +02:00
parent 6fab218c7f
commit 639af02aa5
2 changed files with 5 additions and 5 deletions

View File

@ -11,6 +11,10 @@ RUN pip3 install kaggle
RUN pip3 install torch
RUN pip3 install mlflow
RUN pip3 install dvc
RUN pip3 install dvc[ssh]
RUN useradd -r -u 777 jenkins
RUN apt install -y sshpass openssh-client
RUN mkdir /.kaggle && chmod o+w /.kaggle
@ -31,7 +35,3 @@ ENV KAGGLE_KEY=${KAGGLE_KEY}
# CMD ./ium-data.py
RUN pip3 install dvc
RUN pip3 install dvc[ssh]
RUN useradd -r -u 777 jenkins
RUN apt install -y sshpass openssh-client

View File

@ -13,7 +13,7 @@ pipeline {
stage('DVC') {
steps {
withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY', passphraseVariable: '', usernameVariable: 'USER')]) {
withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY')]) {
//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 keyfile $IUM_SFTP_KEY'
sh 'dvc pull'