Zainal
Zainal•4w ago

bitbucket integration

Hi, our place is using bitbucket on-prem, and i wonder if windmill has good integration story with bitbucket? From what i saw on the docs, it only integrates with github. Thanks!
23 Replies
rubenf
rubenf•4w ago
no it works with bitbucket too as it works with the git protocol itself
Zainal
ZainalOP•4w ago
thanks @rubenf do you have or know any docs that will be useful for us to try setting that up?
rubenf
rubenf•4w ago
Are you talking specifically about the git sync feature?
rubenf
rubenf•4w ago
Deploy to prod using a git workflow | Windmill
Windmill integration with Git repositories makes it possible to adopt a robust development process for your Windmill scripts, flows and apps.
Zainal
ZainalOP•4w ago
oh, i already saw that doc last time, and i think i stumbled upon on this section, https://www.windmill.dev/docs/advanced/deploy_gh_gl#setup-git-sync as i couldn't figure out to make that url with token works with our bitbucket on-prem (note we're not using bitbucket cloud)
Deploy to prod using a git workflow | Windmill
Windmill integration with Git repositories makes it possible to adopt a robust development process for your Windmill scripts, flows and apps.
Zainal
ZainalOP•3w ago
hi @rubenf i created a git_repository resource and then try to sync from the workspace, and i got this error back
Error: SH command 'git clone --quiet --depth 1 *** windmill' returned with error Error: Command failed: git clone --quiet --depth 1 *** windmill fatal: unable to access 'https://bitbucket.blah.com/code/windmill.git/': server certificate verification failed. CAfile: none CRLfile: none
Error: SH command 'git clone --quiet --depth 1 *** windmill' returned with error Error: Command failed: git clone --quiet --depth 1 *** windmill fatal: unable to access 'https://bitbucket.blah.com/code/windmill.git/': server certificate verification failed. CAfile: none CRLfile: none
do you know if there is a way to disable that server certificate verification?
rubenf
rubenf•3w ago
can you reproduce locally and let us know what you had to pass to git to ignore it? (using same command)
Zainal
ZainalOP•3w ago
it looks like setting this will make git ignore that cert verification
GIT_SSL_NO_VERIFY=true
GIT_SSL_NO_VERIFY=true
rubenf
rubenf•3w ago
in that case you can try setting that in the worker group config
rubenf
rubenf•3w ago
No description
Zainal
ZainalOP•3w ago
ok, we'll give it a try, thanks @rubenf sorry for a silly question, so each execution of the resource (i.e. in this case git) will always run on the worker node?
rubenf
rubenf•3w ago
it will always run on a worker yes but if you have multiple worker groups, depend on the tags being assigned tag for git sync is "dependency"
Zainal
ZainalOP•3w ago
another question, if we plan to use the same repository, and i see there is a folder setting in that resource (see attached image) and if i plan to sync/save the code to different folders (i.e. script code under scripts folder, flow code under flows folder, etc.), then does it mean i have to create multiple git_repository resources, and each for different folder?
No description
rubenf
rubenf•3w ago
correct
Zainal
ZainalOP•3w ago
so it looks like we cannot have multiple git_repository resources for the same workspace, is it correct? for example, on the Git Sync tab of the workspace settings, i only can add one git repo resource
rubenf
rubenf•3w ago
you can add, there are options for secondary sync and for promotion mode, it was added recently
Zainal
ZainalOP•3w ago
where is that option for secondary sync? i couldn't find it but i do see the option for the promotion mode
rubenf
rubenf•3w ago
No description
Zainal
ZainalOP•3w ago
not seeing it there, i guess no luck for me..
No description
rubenf
rubenf•3w ago
you need to have a first one 😉
Zainal
ZainalOP•2w ago
you're right indeed!! thanks! btw, i added new var, resource and script and put them under f folder, and attached is the git sync filter settings i have, but when i am trying to push the changes back to repo, it said no changes detected (see another attached screenshot), but obviously i added new things under that f folder, do you know what i missed?
No description
No description
rubenf
rubenf•2w ago
not sure but can you try doing wmill sync push locally maybe ? and what does the job logs say? (can get them by clicking on job id url)
Zainal
ZainalOP•2w ago
my bad, of course i won't see any pending changes there, because i just realized seeing this... lol
No description

Did you find this page helpful?