We have a lot of pipelines running on 0.8 still and we are wondering if you have any thoughts on how to best deal with that ? Would you potentially consider fixing it in 0.8.X or giving us guidance on how to do so (we unfortunately do not have golang devs)…
@Lowess I recommend spinning up and testing a Drone 1.x instance. Drone 1.x should be using all Bitbucket 2.0 endpoints and should therefore work without issue.
Drone 1.x is also capable of reading 0.8 yaml configuration files automatically, which can simplify the migration path. We also have a database migration utility which can help you migrate data over https://github.com/drone/drone-migrate
Thanks for the quick feedback Brad I really appreciate.
Is the old syntax still supported in 1.2 ? I have tried running some of our pipelines with this version but seems to not run with the legacy syntax. Is the compatibility kept between 0.8 and 1.0 only or 1.2 should also be backward compatible with the old syntax ?
We will follow your recommendation and let you know how that goes.
Drone 1.0 shipped with basic conversion logic, which has improved with each release. So it should work for most repositories. The latest 1.2.1 release includes many improvements for one of our customers that is in the process of upgrading a few hundred repositories.
When automatic conversion does not work you can use drone convert to manually convert, and then manually adjust the yaml as needed.
Did you managed migration to 1.x? We stuck at drone/migrate update-repos step.
Error message: failed to get remote repository" error="Get https://api.bitbucket.org/2.0/repositories
I made an attempt to fix this on my fork. This fork is something I maintain for my clients and it has a few additions compared to the vanilla Drone. See the release notes for these changes: https://github.com/laszlocph/drone-oss-08/releases
The fix in question is not merged yet, but released under the following tags.
Please keep the comments constructive and actionable. If you are having issues please post a detailed error message and steps to reproduce and we can try to help.
Protip if you are upgrading from 0.8 please do not choose the native Kubernetes runtime. There is a big warning sign in the documentation that states it is experimental and not production ready [1]. Do not ignore this warning.
@GektorGrom lets start a separate thread to discuss migration. In the new thread, can you please provide your full logs for this command with debug enabled?
Hi @GektorGrom, Yes indeed we faced exactly the same issues ! The drone migration utility states that you should perform a bunch of steps while the drone server is offline. Here is what we did to complete this step:
drone/migrate update-repos failing with failed to get remote repo... We also had issues related to Invalid Oauth credentials....
We run sql update queries directly in the database in order to change the repo_user_id of each repository to work around the Invalid Oauth credentials....