final
This commit is contained in:
parent
c18d43ab24
commit
65e4075f77
@ -33,12 +33,12 @@ node {
|
||||
stage('Copy artifacts') {
|
||||
copyArtifacts filter: 'train_data.csv', fingerprintArtifacts: true, projectName: 's444452-create-dataset'
|
||||
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: 'neural_network_evaluation.csv', projectName: "s444452-evaluation/${params.BRANCH}", optional: true
|
||||
copyArtifacts filter: 'model/neural_net', projectName: "s444452-training/${params.BRANCH}", selector: buildParameter('BUILD_SELECTOR')
|
||||
}
|
||||
stage('Run script') {
|
||||
withEnv(["TEST_PARAMS=${params.TEST_PARAMS}", "BUILD_NR=${params.BUILD_NR}"]) {
|
||||
sh "rm neural_network_evaluation.csv"
|
||||
sh "python3 Scripts/evaluate_neural_network.py $BUILD_NR $TEST_PARAMS"
|
||||
}
|
||||
}
|
||||
|
@ -20,6 +20,7 @@ node {
|
||||
}
|
||||
stage('Run script') {
|
||||
withEnv(["TRAIN_PARAMS=${params.TRAIN_PARAMS}"]) {
|
||||
sh "rm model/neural_net"
|
||||
sh "python3 Scripts/train_neural_network.py $TRAIN_PARAMS"
|
||||
}
|
||||
}
|
||||
@ -41,7 +42,15 @@ 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/${env.BRANCH_NAME}", parameters: [string(name: "TEST_PARAMS", value: "${params.TRAIN_PARAMS}"), string(name: "BUILD_NR", value: "${env.BUILD_NUMBER}")], wait: false
|
||||
build (
|
||||
job: "s444452-evaluation/${env.BRANCH_NAME}",
|
||||
parameters: [
|
||||
gitParameter(name: "BRANCH", value: "${env.BRANCH_NAME}"),
|
||||
string(name: "TEST_PARAMS", value: "${params.TRAIN_PARAMS}"),
|
||||
string(name: "BUILD_NR", value: "${env.BUILD_NUMBER}")
|
||||
],
|
||||
wait: false
|
||||
)
|
||||
}
|
||||
|
||||
emailext (
|
||||
|
Loading…
Reference in New Issue
Block a user