32 lines
599 B
Groovy
32 lines
599 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')
|
|
}
|
|
|
|
stage('Train') {
|
|
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'
|
|
}
|
|
}
|
|
|
|
}
|
|
|