ium_444465/Jenkinsfile.train

33 lines
962 B
Plaintext
Raw Normal View History

2022-05-01 19:48:29 +02:00
pipeline {
agent {
dockerfile true
}
stages {
2022-05-01 20:39:11 +02:00
stage("Setup parameters") {
steps {
script {
properties([
parameters([
string(
defaultValue: '10',
name: 'EPOCHS',
trim: true
)
])
])
}
}
}
2022-05-01 19:48:29 +02:00
stage("Git clone") {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444465', url: 'https://git.wmi.amu.edu.pl/s444465/ium_444465']]])
}
}
stage("Training") {
steps {
sh "chmod 777 ml_training.py"
2022-05-01 20:39:11 +02:00
sh "python3 ml_training.py"
2022-05-01 19:48:29 +02:00
}
}
}
}