drone convert is what you should use as well, but I had an issue with that as it didn’t work with proper yaml anchors (it just removed the line).
we are just switching to a new Drone 1.0 and to ease the migration, we created a very simple script which helped us to do at least the basic stuff automatically.
Here is the repo, PRs welcome, it definitely doesn’t work for all cases and you need to post-check it manually. But it worked for us with simple but not trivial pipelines.
Hey there, Drone 1.0 is able to read 0.8 yaml configuration files. It will detect and convert them on-the-fly. You can also use the
drone convert command to manually convert configuration files. The automatic conversion is not perfect but it should work just fine for most projects. Sorry if we did a poor job communicating this
Heh! Hey, thanks for the answer! Will add it to the description and the github README. Writing that mini script took less than an hour, so no big harm.
I didn’t find this anywhere and actually, the automatic conversion didn’t work in our case.
drone convert works! Thanks a lot!
Hi! I’m trying to use
convert on a
bitbucket-pipelines.yml, but I can’t find how to save the result.
drone convert bitbucket-pipelines.yml --save
The previous code sample just overwrites the file to:
... is the real end of the file.
I’m sorry, but I couldn’t find instructions on docs.
Hi @sobral Drone only saves the log output from each pipeline step, which is stored in the database
Drone doesn’t have native support for saving files or artifacts
I’m sorry. I need to explain myself better. I want to convert a
.drone.yml, but it doesn’t work. The process doesn’t complete. I did it by hand, so, but I would like to know how to do it using
Thank you for your attention.
@sobral you are referring the right doc. Can you share some screenshot for this? “process didn’t complete”.