fix
All checks were successful
s444452-training/pipeline/head This commit looks good
s444452-evaluation/pipeline/head This commit looks good

This commit is contained in:
AdamOsiowy123 2022-05-04 22:23:17 +02:00
parent 6a4e7ff07e
commit c18d43ab24

View File

@ -57,13 +57,14 @@ def notifyBuild(String buildStatus = 'STARTED') {
buildStatus = buildStatus ?: 'SUCCESS' buildStatus = buildStatus ?: 'SUCCESS'
def subject = "Job: ${env.JOB_NAME}" def subject = "Job: ${env.JOB_NAME}"
def lastline = ""
try { try {
def filePath = readFile "${WORKSPACE}/neural_network_evaluation.csv" def filePath = readFile "${WORKSPACE}/neural_network_evaluation.csv"
def lines = filePath.readLines() def lines = filePath.readLines()
def lastline=lines.get(lines.size()-1) lastline = lines.get(lines.size()-1)
} }
catch (e) { catch (e) {
def lastline = "" println(e.toString())
} }
def details = "Build nr: ${env.BUILD_NUMBER}, status: ${buildStatus} \n url: ${env.BUILD_URL} \n build params: ${params.TEST_PARAMS} \n metrics: ${lastline}" def details = "Build nr: ${env.BUILD_NUMBER}, status: ${buildStatus} \n url: ${env.BUILD_URL} \n build params: ${params.TEST_PARAMS} \n metrics: ${lastline}"