Add Git trigger
This commit is contained in:
parent
be0e247d2f
commit
089503e349
24
Jenkinsfile
vendored
24
Jenkinsfile
vendored
@ -1,16 +1,28 @@
|
|||||||
node {
|
node {
|
||||||
def img
|
def img
|
||||||
stage('Preparation') { // for display purposes
|
stage("Properties"){
|
||||||
img = docker.build('ium-helloworld')
|
properties([
|
||||||
}
|
[$class: 'GogsTrigger'],
|
||||||
stage('Train') {
|
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') {
|
||||||
img.inside('-v /tmp/mlruns:/tmp/mlruns -v /mlruns:/mlruns ') {
|
img.inside('-v /tmp/mlruns:/tmp/mlruns -v /mlruns:/mlruns ') {
|
||||||
sh 'ls -l /tmp/mlruns'
|
sh 'ls -l /tmp/mlruns'
|
||||||
sh 'ls -l /mlruns'
|
sh 'ls -l /mlruns'
|
||||||
sh './train.py'
|
sh './train.py'
|
||||||
sh 'ls -l /tmp/mlruns'
|
sh 'ls -l /tmp/mlruns'
|
||||||
sh 'ls -l /mlruns'
|
sh 'ls -l /mlruns'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user