Skip to content

Commit

Permalink
Clone lists instead of assigning
Browse files Browse the repository at this point in the history
* Also make weekly test list and empty list
  • Loading branch information
Morgan Davies committed Oct 27, 2020
1 parent abe1f15 commit eef4176
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pipelines/build/common/build_base_file.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class Builder implements Serializable {
]

// Temporarily remove weekly tests due to lack of machine capacity during release
final List<String> weekly = []
/*
final List<String> weekly = [
'extended.openjdk',
Expand Down Expand Up @@ -186,9 +187,9 @@ class Builder implements Serializable {

// Default to the test sets declared if one isn't set in the build configuration
if ( testJobType == "nightly" ) {
testList = nightly
testList = nightly.clone()
} else {
testList = nightly + weekly
testList = nightly.clone() + weekly.clone()
}

}
Expand Down

0 comments on commit eef4176

Please sign in to comment.