add evaluation
Some checks failed
s464980-training/pipeline/head There was a failure building this commit
s464980-evaluation/pipeline/head There was a failure building this commit

This commit is contained in:
Sheaza 2024-05-14 22:04:38 +02:00
parent db75d723bb
commit 9bb53db2c9
2 changed files with 45 additions and 0 deletions

38
evaluate/Jenkinsfile vendored Normal file
View File

@ -0,0 +1,38 @@
pipeline {
agent any
parameters {
buildSelector (
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
stage('Checkout repository') {
steps {
checkout scm
}
}
stage('Copy artifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s464980-create-dataset', selector: buildParameter('BUILD_SELECTOR')
copyArtifacts fingerprintArtifacts: true, projectName: 's464980-training/master', selector: buildParameter('BUILD_SELECTOR')
}
}
stage("Prediction") {
agent {
dockerfile {
filename 'Dockerfile'
reuseNode true
}
}
steps {
sh "chmod +x ./predict.py"
sh "python ./predict.py"
archiveArtifacts artifacts: 'predictions.txt', onlyIfSuccessful: true
}
}
}
}
}

View File

@ -37,5 +37,12 @@ pipeline {
archiveArtifacts artifacts: 'model.keras', onlyIfSuccessful: true
}
}
stage('Run training'){
steps{
script {
build(job: 's464980-evaluation/master')
}
}
}
}
}