fix
This commit is contained in:
parent
75755f02b3
commit
6a4e7ff07e
@ -57,10 +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}"
|
||||||
|
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)
|
def lastline=lines.get(lines.size()-1)
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
def lastline = ""
|
||||||
|
}
|
||||||
|
|
||||||
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}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user