rancher / qa-tasks

List of QA Backlog
1 stars 1 forks source link

Add default value for RANCHER_OPTIONAL_FILES in the jenkins job create_rke2_cluster #991

Open anupama2501 opened 11 months ago

anupama2501 commented 11 months ago

The job fails with the error

 tests/v3_api/test_import_rke2_cluster.py::test_create_rke2_multiple_control_cluster Creating cluster
 06:06:11 - __init__.py:cmd:306 - [WARNING]: error: b''
 06:07:23 - __init__.py:cmd:306 - [WARNING]: error: b'\nError: Invalid template interpolation value: The expression result is null. Cannot include a null value in a string template.\n\n\n' 
06:07:23 - __init__.py:cmd:306 - [WARNING]: error: b'\nError: Invalid template interpolation value: The expression result is null. Cannot include a null value in a string template.\n\n\n'

Terraform expects a value for the optional_files and it cannot be empty. Adding a default value similar to the rancher_ha_deploy job resolves the issue.

ShylajaDevadiga commented 11 months ago

PR: https://github.com/rancherlabs/jenkins-job-builder/pull/325