kestra-io / plugin-git

Apache License 2.0
3 stars 3 forks source link

io.kestra.plugin.git.SyncFlows not working with Azure git #72

Closed HeribertoAlves closed 4 months ago

HeribertoAlves commented 4 months ago

Expected Behavior

Sync all flow on Kestra

Actual Behaviour

Illegal flow yaml: Cannot construct instance of io.kestra.core.models.flows.Flow (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('.') at [Source: (StringReader); line: 1, column: 1]

Steps To Reproduce

Just create a flow and execute it.

All my flows area on folder flows/cnae on git

Environment Information

Example flow

id: syc_flows_from_gitazure namespace: timoneiro.online description: Sincronizar os fluxos salvos no git

labels: project: tim.datawarehouse environment: prod client: all target: gitsync

tasks:

HeribertoAlves commented 4 months ago

On targetNamespace I've tried tim, "tim" as well.

I have another flow and I use io.kestra.plugin.git.Clone with no problem

HeribertoAlves commented 4 months ago

I figure it out!

I tried on Gitlab and got the error: Illegal flow yaml: No content to map due to end-of-input at [Source: (StringReader); line: 1, column: 1]

But when I deleted all .gitkeep from all repository I was able to sync.

So I went back to Azure and delete .gitignore file that existed. Synced without problem!

Hope this help!

brian-mulier-p commented 4 months ago

Hello ! Sorry for the inconvenience I forgot to ignore .git** files, done and will be available in the next bugfix release (0.17.3)

HeribertoAlves commented 4 months ago

@brian-mulier-p I'm glad I could help! That's great news!