dvc_jenkins

This commit is contained in:
Wojciech Lidwin 2023-05-12 12:54:55 +02:00
parent 7dd2475f24
commit d4411f2651
2 changed files with 26 additions and 0 deletions

View File

@ -16,6 +16,7 @@ RUN pip3 install argparse
RUN pip3 install matplotlib
RUN pip3 install sacred
RUN pip3 install pymongo
RUN pip3 install dvc
WORKDIR /app

25
Jenkinsfile_dvc Normal file
View File

@ -0,0 +1,25 @@
node {
stage('Preparation') {
properties([
parameters([
])
])
}
stage('checkout: Check out from version control') {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's487197', url: 'https://git.wmi.amu.edu.pl/s487197/ium_487197']]])
}
stage('Dockerfile'){
def testImage = docker.image('s487197/ium:53')
testImage.inside{
withCredentials(
[sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY', passphraseVariable: '', usernameVariable: '')]) {
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'}
}
}
}