2023-05-07 18:05:33 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
//Definijuemy parametry, ktore bedzie mozna podac podczas wywolywania zadania
|
|
|
|
parameters {
|
|
|
|
string (
|
|
|
|
name: 'epochs_count',
|
|
|
|
defaultValue: '10',
|
|
|
|
description: 'How many epochs do you want to train?',
|
|
|
|
)
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Run Script') {
|
|
|
|
steps {
|
|
|
|
script {
|
2023-05-07 18:15:16 +02:00
|
|
|
sh 'docker build . -t jhenyk/ium:latest --build-arg epochs=$params.epochs_count'
|
2023-05-07 18:05:33 +02:00
|
|
|
sh 'docker run jhenyk/ium:latest'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
stage('Archive Output') {
|
|
|
|
steps {
|
|
|
|
archiveArtifacts 'cifar_net.pth'
|
|
|
|
}
|
|
|
|
}
|
2023-05-07 18:07:48 +02:00
|
|
|
}
|
|
|
|
}
|