Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
673c7b33e0 | |||
e2ce30dd02 | |||
ff2213ebe2 | |||
3e7986c73a | |||
0a1cfb067c | |||
889665bf34 | |||
58ee419a1b | |||
bbab9942c0 | |||
4e75ac4554 |
@ -18,7 +18,7 @@ node {
|
|||||||
name: 'BUILD_SELECTOR'
|
name: 'BUILD_SELECTOR'
|
||||||
),
|
),
|
||||||
string(
|
string(
|
||||||
defaultValue: ".,14000,1,50,100",
|
defaultValue: ".,14100,3,50,100",
|
||||||
description: 'Test params: data_path,num_words,epochs,batch_size,pad_length',
|
description: 'Test params: data_path,num_words,epochs,batch_size,pad_length',
|
||||||
name: 'TEST_PARAMS'
|
name: 'TEST_PARAMS'
|
||||||
),
|
),
|
||||||
@ -33,9 +33,8 @@ node {
|
|||||||
stage('Copy artifacts') {
|
stage('Copy artifacts') {
|
||||||
copyArtifacts filter: 'train_data.csv', fingerprintArtifacts: true, projectName: 's444452-create-dataset'
|
copyArtifacts filter: 'train_data.csv', fingerprintArtifacts: true, projectName: 's444452-create-dataset'
|
||||||
copyArtifacts filter: 'test_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/${params.BRANCH}", optional: true
|
||||||
copyArtifacts filter: 'neural_network_evaluation.csv', projectName: "s444452-evaluation/${BRANCH}/", optional: true
|
copyArtifacts filter: 'model/neural_net', projectName: "s444452-training/${params.BRANCH}", selector: buildParameter('BUILD_SELECTOR')
|
||||||
copyArtifacts filter: 'model/neural_net', projectName: "s444452-training/${BRANCH}/", selector: buildParameter('BUILD_SELECTOR')
|
|
||||||
}
|
}
|
||||||
stage('Run script') {
|
stage('Run script') {
|
||||||
withEnv(["TEST_PARAMS=${params.TEST_PARAMS}", "BUILD_NR=${params.BUILD_NR}"]) {
|
withEnv(["TEST_PARAMS=${params.TEST_PARAMS}", "BUILD_NR=${params.BUILD_NR}"]) {
|
||||||
|
@ -7,7 +7,7 @@ node {
|
|||||||
pipelineTriggers([upstream(threshold: hudson.model.Result.SUCCESS, upstreamProjects: "s444452-create-dataset")]),
|
pipelineTriggers([upstream(threshold: hudson.model.Result.SUCCESS, upstreamProjects: "s444452-create-dataset")]),
|
||||||
parameters([
|
parameters([
|
||||||
string(
|
string(
|
||||||
defaultValue: ".,14000,1,50,100",
|
defaultValue: ".,14100,3,50,100",
|
||||||
description: 'Train params: data_path,num_words,epochs,batch_size,pad_length',
|
description: 'Train params: data_path,num_words,epochs,batch_size,pad_length',
|
||||||
name: 'TRAIN_PARAMS'
|
name: 'TRAIN_PARAMS'
|
||||||
)
|
)
|
||||||
@ -41,7 +41,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}"
|
def details = "Build nr: ${env.BUILD_NUMBER}, status: ${buildStatus} \n url: ${env.BUILD_URL} \n build params: ${params.TRAIN_PARAMS}"
|
||||||
|
|
||||||
if (buildStatus == 'SUCCESS') {
|
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 (
|
emailext (
|
||||||
|
Loading…
Reference in New Issue
Block a user