fix: jenkinsfile-dvc
This commit is contained in:
parent
cc11c07fa8
commit
ba5164177e
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue