Could not provision some of the projects error

Dear SonarQube Cloud,

Trying to Analyze new project but failed.
I have two permission templates like below

  • om.abc.*
  • om.abc2.*

And the repo project key would be om-abc2-frontend got the Could not provision some of the projects error error

I checked the community link below

But the repo would not match for the two permission templates
If I set one of the permission template, than the target repo om-abc2-frontend is able to import in the SonarQube Cloud.

Please check this issue

Hi,

What makes you believe this is related to your permissions templates? Are there details you haven’t shared here that point to that?

I suppose that if the error is related to permission templates, it would be because these two patterns overlap. You need to provide “a valid regular expression” for a project key pattern. Both of these are that. But those dots (.) are interpreted as “any character”.

So om-abc2 matches both of your regexes and I suppose provisioning can’t decide between them and so gives up.

 
HTH,
Ann

Hello

For more details,

The two permission templates are like below

  • om.abc.*
  • om.abc2.*

and example of the project key is like below

  • om-abc-frontend
  • om-abc2-frontend

I suspect that this Could not provision some of the projects error is because of the permission template
Because if I remove one of the template, each project is created to get the permission.

If the dots. in my permission template interpreted as “any character”, could you tell me the correct way to set the permission template?

Our project key is like below

om-abc-* projects

  • om-abc-frontend
  • om-abc-backend

om-abc2-* projects

  • om-abc2-frontend
  • om-abc2-backend

Thank you :slight_smile:

Hi,

Makes sense. :smiley:

To have the templates not overlap, you’ll need to differentiate them. So something like:

om-abc-.*
om-abc2-.*

Note my use of dashes instead of dots (any character) as separators.

 
HTH,
Ann

It works, thanks