-
Notifications
You must be signed in to change notification settings - Fork 474
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add job to trigger post submit test cascade of heavy jobs
... instead of using reverse triggers for slow jobs (more than 10 min) These jobs require a package build and would otherwise trigger several individual package builds with different commit SHAs CMK-20854 Change-Id: I001ae45fa415c674366a66b27ca344b719c92654
- Loading branch information
1 parent
7e8ad7d
commit 78f9189
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
buildscripts/scripts/trigger-post-submit-test-cascade-full.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!groovy | ||
|
||
/// file: trigger-post-submit-test-cascade-full.groovy | ||
|
||
/// Trigger post submit test cascade of heavy jobs | ||
|
||
def main() { | ||
def all_heavy_jobs = [ | ||
"trigger-build-upload-cmk-distro-package", | ||
"test-gui-crawl-f12less", | ||
"trigger-test-gui-e2e", | ||
"test-integration-single-f12less", | ||
"test-integration-single-f12less-redfish", | ||
"test-composition-single-f12less", | ||
"test-composition-single-f12less-cme", | ||
"test-integration-single-f12less-cme", | ||
]; | ||
|
||
print( | ||
""" | ||
|===== CONFIGURATION =============================== | ||
|all_heavy_jobs:........... │${all_heavy_jobs}│ | ||
|checkout_dir:............. │${checkout_dir}│ | ||
|=================================================== | ||
""".stripMargin()); | ||
|
||
def build_for_parallel = [:]; | ||
def base_folder = "${currentBuild.fullProjectName.split('/')[0..-2].join('/')}"; | ||
|
||
all_heavy_jobs.each { item -> | ||
build_for_parallel[item] = { -> | ||
stage(item) { | ||
build( | ||
job: "${base_folder}/${item}", | ||
propagate: true, // Raise any errors | ||
parameters: [ | ||
string(name: "CUSTOM_GIT_REF", value: checkout_commit_id), | ||
string(name: "CIPARAM_OVERRIDE_BUILD_NODE", value: CIPARAM_OVERRIDE_BUILD_NODE), | ||
string(name: "CIPARAM_CLEANUP_WORKSPACE", value: CIPARAM_CLEANUP_WORKSPACE), | ||
string(name: "CIPARAM_BISECT_COMMENT", value: CIPARAM_BISECT_COMMENT), | ||
], | ||
); | ||
} | ||
} | ||
} | ||
|
||
stage('Trigger all heavy tests') { | ||
parallel build_for_parallel; | ||
} | ||
} | ||
|
||
return this; |