Jenkins fix
This commit is contained in:
parent
9e90bd0876
commit
fbc8395e2c
@ -2,22 +2,10 @@ pipeline {
|
|||||||
agent {
|
agent {
|
||||||
dockerfile true
|
dockerfile true
|
||||||
}
|
}
|
||||||
|
parameters {
|
||||||
|
string(name: 'EPOCH', defaultValue: '10', description: 'Number of epochs in training')
|
||||||
|
}
|
||||||
stages {
|
stages {
|
||||||
stage("Setup parameters") {
|
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
properties([
|
|
||||||
parameters([
|
|
||||||
string(
|
|
||||||
defaultValue: '10',
|
|
||||||
name: 'EPOCHS',
|
|
||||||
trim: true
|
|
||||||
)
|
|
||||||
])
|
|
||||||
])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage("Git clone") {
|
stage("Git clone") {
|
||||||
steps {
|
steps {
|
||||||
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444465', url: 'https://git.wmi.amu.edu.pl/s444465/ium_444465']]])
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444465', url: 'https://git.wmi.amu.edu.pl/s444465/ium_444465']]])
|
||||||
@ -26,7 +14,7 @@ pipeline {
|
|||||||
stage("Training") {
|
stage("Training") {
|
||||||
steps {
|
steps {
|
||||||
sh "chmod 777 ml_training.py"
|
sh "chmod 777 ml_training.py"
|
||||||
sh "python3 ml_training.py"
|
sh "python3 ml_training.py $EPOCH"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user