41 lines
997 B
Groovy
41 lines
997 B
Groovy
node {
|
|
def img
|
|
stage("Properties"){
|
|
properties([
|
|
pipelineTriggers([
|
|
pollSCM(''),
|
|
[$class: 'GogsTrigger']
|
|
])
|
|
])
|
|
}
|
|
|
|
stage("Checkout"){
|
|
git 'https://git.wmi.amu.edu.pl/tzietkiewicz/ium-helloworld.git'
|
|
}
|
|
|
|
stage('Environment') { // for display purposes
|
|
img = docker.build('ium-helloworld')
|
|
}
|
|
|
|
img.inside('-v /tmp/mlruns:/tmp/mlruns -v /mlruns:/mlruns ') {
|
|
|
|
// stage('MLflow') {
|
|
// sh 'ls -l /tmp/mlruns'
|
|
// sh 'ls -l /mlruns'
|
|
// sh 'python3 ./train.py'
|
|
// sh 'ls -l /tmp/mlruns'
|
|
// sh 'ls -l /mlruns'
|
|
// }
|
|
|
|
stage("DVC"){
|
|
withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY')]) {
|
|
sh 'ssh ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl -i $IUM_SFTP_KEY'
|
|
sh 'dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY'
|
|
sh "dvc pull"
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|