fix: jenkinsfile-dvc

This commit is contained in:
Filip Patyk 2023-05-23 12:49:13 +02:00
parent cc11c07fa8
commit ba5164177e
2 changed files with 3 additions and 3 deletions

View File

@ -14,9 +14,9 @@ COPY environment.yml /tmp/environment.yml
RUN mamba env create -f /tmp/environment.yml && mamba clean -ya RUN mamba env create -f /tmp/environment.yml && mamba clean -ya
RUN echo "mamba activate ium" >> ~/.bashrc RUN echo "mamba activate ium" >> ~/.bashrc
ENV PATH /opt/conda/envs/ium/bin:$PATH 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 COPY src ./src
#make dir for data #make dir for data

View File

@ -9,9 +9,9 @@ node {
sh "chmod +x -R ${env.WORKSPACE}" sh "chmod +x -R ${env.WORKSPACE}"
def dockerImage = docker.build("s424714-model:latest") def dockerImage = docker.build("s424714-model:latest")
withCredentials([string(credentialsId: 'ium-sftp-password', variable: 'IUM_SFTP_PASS')]) {
dockerImage.inside { 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 remote modify --local ium_ssh_remote password $IUM_SFTP_PASS'
sh 'dvc pull' sh 'dvc pull'
sh 'dvc repro' sh 'dvc repro'