Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an optional NODELIST argument to functionalTestPostV2 #259

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion vars/functionalTestPostV2.groovy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// vars/functionalTestPostV2.groovy

/**
* functionalTestPost step method
* functionalTestPostV2 step method
*
* @param config Map of parameters passed
*
Expand All @@ -13,11 +13,21 @@
*
* config['testResults'] Junit test result files.
* Default env.STAGE_NAME subdirectories
*
* config['NODELIST'] The list of nodes the test was run on.
* Default env.NODELIST.
*
* config['remote_acct'] The account used to run the tests on the cluster.
* Default jenkins.
*/

def call(Map config = [:]) {

String nodelist = config.get('NODELIST', env.NODELIST)
String remote_acct = config.get('remote_acct', 'jenkins')
String always_script = config.get('always_script',
'NODELIST="' + nodelist + '" ' +
'REMOTE_ACCT="' + remote_acct + '" ' +
'ci/functional/job_cleanup.sh')
String rc = sh label: "Job Cleanup",
script: always_script,
Expand Down