2021-05-26 21:26:06 +02:00
|
|
|
node {
|
2021-05-26 21:40:21 +02:00
|
|
|
def img
|
|
|
|
stage("Properties"){
|
|
|
|
properties([
|
|
|
|
[$class: 'GogsTrigger'],
|
|
|
|
pipelineTriggers([pollSCM('')])
|
|
|
|
])
|
|
|
|
}
|
|
|
|
|
|
|
|
stage("Checkout"){
|
|
|
|
git 'https://git.wmi.amu.edu.pl/tzietkiewicz/ium-helloworld.git'
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Environment') { // for display purposes
|
|
|
|
img = docker.build('ium-helloworld')
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Train') {
|
2021-05-26 21:26:06 +02:00
|
|
|
img.inside('-v /tmp/mlruns:/tmp/mlruns -v /mlruns:/mlruns ') {
|
|
|
|
sh 'ls -l /tmp/mlruns'
|
|
|
|
sh 'ls -l /mlruns'
|
|
|
|
sh './train.py'
|
|
|
|
sh 'ls -l /tmp/mlruns'
|
|
|
|
sh 'ls -l /mlruns'
|
2021-05-26 21:40:21 +02:00
|
|
|
}
|
2021-05-26 21:26:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|