update jenkisfile lab 6 zad 1
This commit is contained in:
parent
87f7590004
commit
eaab2946c8
@ -11,7 +11,8 @@ pipeline{
|
|||||||
|
|
||||||
stage('Train model'){
|
stage('Train model'){
|
||||||
steps{
|
steps{
|
||||||
sh "docker run -v ${env.WORKSPACE}/dane:app/dane ium python3 /app/DL-model.py"
|
def epochs = params.EPOCHS ?: '10' // Domyślna wartość 10, jeśli parametr EPOCHS nie jest przekazany
|
||||||
|
sh "docker run -v ${env.WORKSPACE}/dane:/app/dane ium python3 /app/DL-model.py --epochs ${epochs}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user