ium_487197/Jenkinsfile_train

38 lines
1.2 KiB
Plaintext
Raw Normal View History

2023-05-11 18:48:20 +02:00
node {
stage('Preparation') {
properties([
parameters([
2023-05-11 20:13:03 +02:00
string(
defaultValue: '20',
description: 'Number of epochs',
name: 'EPOCHS'
),
string(
defaultValue: '0.01',
description: 'Learning rate',
name: 'LR'
),
string(
defaultValue: '0.2',
description: 'Validation_split',
name: 'VALIDATION_SPLIT'
),
2023-05-11 18:48:20 +02:00
])
])
}
stage('checkout: Check out from version control') {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's487197', url: 'https://git.wmi.amu.edu.pl/s487197/ium_487197']]])
}
stage('Dockerfile'){
2023-05-11 20:14:33 +02:00
def testImage = docker.image('s487197/ium:35')
2023-05-11 19:03:24 +02:00
testImage.inside{
2023-05-11 18:48:20 +02:00
copyArtifacts filter: 'baltimore_train.csv', projectName: 's487197-create-dataset'
2023-05-11 20:13:03 +02:00
sh "python3 ium_train.py" -epochs $EPOCHS -lr $LR -validation_split $VALIDATION_SPLIT"
2023-05-11 20:00:05 +02:00
archiveArtifacts artifacts: 'baltimore_model.h5'
2023-05-11 18:48:20 +02:00
2023-05-11 19:03:24 +02:00
2023-05-11 18:48:20 +02:00
}
}
}