#Unable to register yamls from feature branch

9 messages · Page 1 of 1 (latest)

solar slate
#

Hello guys im trying to register a catalog-yaml file from a branch in this format feature/<branch_name> but it looks like backstage doesn't recognize branches that contain forward slashes

Is there anybody who knows a workaround to fix this ?

lucid bramble
#

Hi @solar slate Enri , can you share your app-config.yaml ? and Whats provider do you use ?

solar slate
#

Hi @lucid bramble thanks for the response here is the catalog provider :
catalog:
orphanStrategy: delete
processingInterval: { hours: 24 }
providers:
github:
sisal-org:
organization: 'Sisal-Org'
rules:
- allow: [Component, System, API, Group, User, Template, Location, Resource]

lucid bramble
#

My configuration this is : gitlab:
yourProviderId:
centrus:
host: mv1
token: dadasdasdasd
branch: master -> "here the branch"
entityFilename: catalog-info.yaml
projectPattern: '[\s\S]*'
schedule:
frequency: { minutes: 30 }
timeout: { minutes: 3 }

lucid bramble
#

@solar slate Does your configuration include branch information?

spring valve
#

You should register from stable unchanging URLs. Registering a URL doesn't one-shot read the file; it's an instruction for the catalog to track that URL forever and detecting file changes etc

#

If you merge the feature branch, the connection to the file is severed because the URL effectively changes, and things stop updating and you get processing errors

solar slate
#

@lucid bramble i was trying to make it work via any feature branch that the user want at least that was the idea, but what @spring valve is explaining to me make sense now thank u all for the support

lucid bramble
#

@solar slate I understand, really in any branch I believe it is not possible.