Skip to content

Commit b6d1cb9

Browse files
committed
wip
1 parent 9a69a40 commit b6d1cb9

File tree

1 file changed

+31
-24
lines changed

1 file changed

+31
-24
lines changed

Jenkinsfile

Lines changed: 31 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -535,37 +535,35 @@ pipeline {
535535
// lots more test cases could be cooked up, to be sure
536536
script {
537537
stages = [[name: 'Fake CentOS 7 Functional stage',
538-
tag: 'vm'],
539-
[name: 'Fake CentOS 7 Functional Hardware Medium stage',
540-
tag: 'hw,medium,-provider'],
541-
[name: 'Fake CentOS 7 Functional Hardware Medium Provider stage',
542-
tag: 'hw,medium,provider'],
543-
[name: 'Fake CentOS 7 Functional Hardware Large stage',
544-
tag: 'hw,large']]
545-
commits = [[tags: [[tag: 'Test-tag', value: 'datamover']],
546-
tag_template: '@commits.value@,@stages.tag@'],
547-
[tags: [[tag: 'Features', value: 'datamover']],
548-
tag_template: 'pr,@stages.tag@ ' +
549-
'pr,@commits.value@,@stages.tag@ ' +
538+
tag: 'vm']
539+
// ,
540+
// [name: 'Fake CentOS 7 Functional Hardware Medium stage',
541+
// tag: 'hw,medium,-provider'],
542+
// [name: 'Fake CentOS 7 Functional Hardware Medium Provider stage',
543+
// tag: 'hw,medium,provider'],
544+
// [name: 'Fake CentOS 7 Functional Hardware Large stage',
545+
// tag: 'hw,large']
546+
]
547+
commits = [
548+
[tags: [[tag: 'Test-tag', value: 'datamover']],
549+
tag_template: '@commits.value@,@stages.tag@'],
550+
[tags: [[tag: 'Features', value: 'datamover']],
551+
tag_template: 'pr,@stages.tag@ ' +
550552
'daily_regression,@commits.value@,@stages.tag@ ' +
551553
'full_regression,@commits.value@,@stages.tag@'],
552554
/* groovylint-disable-next-line DuplicateMapLiteral */
553-
[tags: [[tag: 'Test-tag', value: 'datamover'],
554-
[tag: 'Features', value: 'foobar']],
555-
tag_template: '@commits.value@,@stages.tag@ ' +
556-
'pr,foobar,@stages.tag@ ' +
557-
'daily_regression,foobar,@stages.tag@ ' +
558-
'full_regression,foobar,@stages.tag@'],
559-
[tags: [[tag: 'Features', value: 'datamover foobar']],
560-
tag_template: 'pr,@stages.tag@ ' +
561-
'pr,datamover,@stages.tag@ ' +
555+
[tags: [[tag: 'Test-tag', value: 'datamover'],
556+
[tag: 'Features', value: 'foobar']],
557+
tag_template: '@commits.value@,@stages.tag@'],
558+
[tags: [[tag: 'Features', value: 'datamover foobar']],
559+
tag_template: 'pr,@stages.tag@ ' +
562560
'daily_regression,datamover,@stages.tag@ ' +
563561
'full_regression,datamover,@stages.tag@ ' +
564-
'pr,foobar,@stages.tag@ ' +
565562
'daily_regression,foobar,@stages.tag@ ' +
566563
'full_regression,foobar,@stages.tag@'],
567-
[tags: [[tag: 'Test-tag', value: 'datamover foobar']],
568-
tag_template: 'datamover,@stages.tag@ foobar,@stages.tag@']]
564+
[tags: [[tag: 'Test-tag', value: 'datamover foobar']],
565+
tag_template: 'datamover,@stages.tag@ foobar,@stages.tag@']
566+
]
569567
commits.each { commit ->
570568
cm = '''\
571569
Test commit\n'''
@@ -583,7 +581,16 @@ pipeline {
583581
'COMMIT_MESSAGE=' + cm.stripIndent()]) {
584582
cmp = commit.tag_template.replace('@commits.value@', commit.tags[0].value)
585583
cmp = cmp.replace('@stages.tag@', stage.tag)
584+
echo "BANGBANG"
585+
println("BANGBANG")
586+
println("BANG -> stage: ${stage}")
587+
println("BANG -> commit: ${commit}")
588+
println("BANG -> cmp: ${cmp}")
589+
println("BANG -> parseStageInfo(): ${parseStageInfo()}")
590+
586591
assert(parseStageInfo()['test_tag'] == cmp), parseStageInfo()['test_tag'] + ' != ' + cmp
592+
// parseStageInfo()['test_tag'] -> pr,vm pr,datamover,vm daily_regression,datamover,vm full_regression,datamover,vm !=
593+
// cmp => pr,vm daily_regression,datamover,vm full_regression,datamover,vm
587594
}
588595
}
589596
}

0 commit comments

Comments
 (0)