fix
s444452-training/pipeline/head This commit looks good Details
s444452-evaluation/pipeline/head There was a failure building this commit Details

This commit is contained in:
AdamOsiowy123 2022-05-04 20:05:40 +02:00
parent 25b46d08f9
commit 66c61839e9
2 changed files with 10 additions and 2 deletions

View File

@ -21,6 +21,11 @@ node {
defaultValue: ".,14000,1,50,100",
description: 'Test params: data_path,num_words,epochs,batch_size,pad_length',
name: 'TEST_PARAMS'
),
string(
defaultValue: "0",
description: 'Build number',
name: 'BUILD_NR'
)
])
])
@ -34,12 +39,15 @@ node {
}
stage('Run script') {
withEnv(["TEST_PARAMS=${params.TEST_PARAMS}"]) {
sh "python3 Scripts/evaluate_neural_network.py 0 $TEST_PARAMS"
sh "python3 Scripts/evaluate_neural_network.py ${params.BUILD_NR} $TEST_PARAMS"
}
}
stage('Archive artifacts') {
archiveArtifacts "neural_network_evaluation.csv, evaluation.png"
}
stage('Echo branch') {
sh "echo ${params.BRANCH}"
}
}
} catch (e) {
currentBuild.result = "FAILED"

View File

@ -41,7 +41,7 @@ def notifyBuild(String buildStatus = 'STARTED') {
def details = "Build nr: ${env.BUILD_NUMBER}, status: ${buildStatus} \n url: ${env.BUILD_URL} \n build params: ${params.TRAIN_PARAMS}"
if (buildStatus == 'SUCCESS') {
build job: 's444452-evaluation/master', parameters: [string(name: "TEST_PARAMS", value: "${params.TRAIN_PARAMS}")], wait: false
build job: 's444452-evaluation/master', parameters: [string(name: "TEST_PARAMS", value: "${params.TRAIN_PARAMS}"), string(name: "BUILD_NR", value: "${env.BUILD_NR}")], wait: false
}
emailext (