ium_487197/Jenkinsfile_train

40 lines
1.3 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-12 03:38:08 +02:00
def testImage = docker.image('s487197/ium:41')
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-12 03:19:08 +02:00
sh "python3 ium_sacred.py -epochs $EPOCHS -lr $LR -validation_split $VALIDATION_SPLIT"
2023-05-12 01:16:44 +02:00
archiveArtifacts artifacts: 'baltimore.zip'
stage('Buil'){
2023-05-12 01:25:05 +02:00
build job: 's487197-evaluation.eg/master', parameters: [string(name: 'build', value: "${currentBuild.number}")], wait:false
2023-05-12 01:16:44 +02:00
}
2023-05-11 19:03:24 +02:00
2023-05-11 18:48:20 +02:00
}
}
}