fix: jenkinsfile-dvc
This commit is contained in:
parent
f142e3e78e
commit
97e9f584e7
@ -14,7 +14,7 @@ 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
|
||||||
|
|
||||||
|
@ -5,10 +5,7 @@ node {
|
|||||||
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's424714', url: 'https://git.wmi.amu.edu.pl/s424714/ium_424714']]])
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's424714', url: 'https://git.wmi.amu.edu.pl/s424714/ium_424714']]])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
stage('Dockerfile build') {
|
stage('Dockerfile build') {
|
||||||
|
|
||||||
|
|
||||||
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")
|
||||||
|
|
||||||
@ -17,7 +14,7 @@ node {
|
|||||||
withCredentials([string(credentialsId: 'ium-sftp-password', variable: 'IUM_SFTP_PASS')]) {
|
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 exp run'
|
sh 'dvc repro'
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user