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

This commit is contained in:
AdamOsiowy123 2022-05-04 19:14:22 +02:00
parent 68bbc49aab
commit 3707d5a732
2 changed files with 8 additions and 8 deletions

View File

@ -12,10 +12,10 @@ node {
name: 'BRANCH',
type: 'PT_BRANCH'
),
buildSelector(
defaultSelector: upstream(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
string(
defaultValue: "0",
description: 'BUILD_NR',
name: 'BUILD_NR'
),
string(
defaultValue: ".,14000,1,50,100",
@ -30,11 +30,11 @@ node {
copyArtifacts filter: 'test_data.csv', fingerprintArtifacts: true, projectName: 's444452-create-dataset'
git branch: "${params.BRANCH}", url: 'https://git.wmi.amu.edu.pl/s444452/ium_444452.git'
copyArtifacts filter: 'neural_network_evaluation.csv', projectName: "s444452-evaluation/${BRANCH}/", optional: true
copyArtifacts filter: 'model/neural_net', projectName: "s444452-training/${BRANCH}/", selector: buildParameter('BUILD_SELECTOR')
copyArtifacts filter: 'model/neural_net', projectName: "s444452-training/${BRANCH}/"
}
stage('Run script') {
withEnv(["TEST_PARAMS=${params.TEST_PARAMS}", "BUILD_NR=${params.BUILD_SELECTOR}"]) {
sh "python3 Scripts/evaluate_neural_network.py $BUILD_NR $TEST_PARAMS"
withEnv(["TEST_PARAMS=${params.TEST_PARAMS}"]) {
sh "python3 Scripts/evaluate_neural_network.py ${params.BUILD_NR} $TEST_PARAMS"
}
}
stage('Archive artifacts') {

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', parameters: [gitParameter(name: "BRANCH", value: "${env.BRANCH_NAME}"), string(name: "TEST_PARAMS", value: "${params.TRAIN_PARAMS}")], wait: false
build job: 's444452-evaluation', parameters: [gitParameter(name: "BRANCH", value: "${env.BRANCH_NAME}"), string(name: "TEST_PARAMS", value: "${params.TRAIN_PARAMS}"), string(name: "BUILD_NR", value: "${env.BUILD_NR}")], wait: false
}
emailext (