fix
This commit is contained in:
parent
25b46d08f9
commit
66c61839e9
@ -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"
|
||||
|
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user