ium_452627/Jenkinsfile_3
Jakub Henyk a3c7c6f2f3 fix
2023-05-07 18:07:14 +02:00

27 lines
675 B
Plaintext

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 {
sh 'docker build . -t jhenyk/ium:latest --build-arg epochs=epochs_count'
sh 'docker run jhenyk/ium:latest'
}
}
}
stage('Archive Output') {
steps {
archiveArtifacts 'cifar_net.pth'
}
}
}