I tried to set a specific date for new code period using a web api. But the result I get is following.
Invalid new code period. '2020-09-08' is not one of: integer > 0, date before current analysis j, "previous_version", or version string that exists in the long-lived branch.
Please contact a project administrator to correct this setting
The document I followed is this.
And I tried setting many different dates, even to year 2020. But none of them worked.
'key': 'sonar.leak.period', 'value': '2020-09-08'
'key': 'sonar.leak.period.type', 'value': '2020-09-08'
Please help to resolve this issue. Let me know if there is other information you need.
Thanks in advance.