2021-06-12 17:54:38 +02:00
|
|
|
pipeline{
|
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 's434804/ium:0.5'
|
|
|
|
args '-v /tmp/mlruns:/tmp/mlruns -v /mlruns:/mlruns '
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stages{
|
|
|
|
stage('checkout: Check out from version control'){
|
|
|
|
steps{
|
|
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '3e2b5ea1-7a08-4418-892b-c562315036a4', url: 'https://git.wmi.amu.edu.pl/s430705/ium_430705']]])
|
|
|
|
}
|
|
|
|
}
|
2021-06-12 17:57:19 +02:00
|
|
|
|
2021-06-12 17:54:38 +02:00
|
|
|
stage("DVC"){
|
2021-06-12 17:57:19 +02:00
|
|
|
withCredentials([string(credentialsId: 'ium-sftp-password', variable: 'IUM_SFTP_PASS')]) {
|
2021-06-12 18:00:22 +02:00
|
|
|
steps{
|
2021-06-12 17:54:38 +02:00
|
|
|
sh 'pip install dvc'
|
|
|
|
sh 'pip install dvc[ssh] paramiko'
|
2021-06-12 17:57:19 +02:00
|
|
|
sh "dvc init -f"
|
|
|
|
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 password $IUM_SFTP_KEY"
|
2021-06-12 17:54:38 +02:00
|
|
|
sh "dvc pull"
|
|
|
|
sh "dvc reproduce"
|
2021-06-12 18:00:22 +02:00
|
|
|
}}
|
2021-06-12 17:59:29 +02:00
|
|
|
}
|
2021-06-12 17:54:38 +02:00
|
|
|
}
|
|
|
|
}
|