Skip to content

Add functionality to copy existing build configuration to a new build#222

Merged
shiv-tyagi merged 2 commits intoArduPilot:mainfrom
shiv-tyagi:build-reload
Feb 7, 2026
Merged

Add functionality to copy existing build configuration to a new build#222
shiv-tyagi merged 2 commits intoArduPilot:mainfrom
shiv-tyagi:build-reload

Conversation

@shiv-tyagi
Copy link
Member

Closes #193

This adds the functionality to base a new build on the configuration of an existing build. We add a "Copy and rebuild" button next to each build in build table and take user to the add build page where the same options get auto selected while loading the page.

I have also added necessary validations to ensure the existing build vehicle, version and boards are still listed there. If not, we show an alert to the user and redirect to the same page with default selections.

I have set the custom-beta to run this.
2026-02-06_22-59

Copy link
Contributor

@peterbarker peterbarker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shiv-tyagi shiv-tyagi merged commit 463f7ec into ArduPilot:main Feb 7, 2026
1 check passed
@thespova
Copy link

thespova commented Feb 7, 2026

I just tried it out on the beta server, this is AWESOME!!! I thin this feature will be huge, I know for me it will be super helpful. Thanks!

Is there a way I can save this rebuild configuration locally incase it takes me longer 24h to try something out and need to change the rebuild?

@shiv-tyagi
Copy link
Member Author

shiv-tyagi commented Feb 7, 2026

I am glad that you liked it @thespova.

Using a config file to select options has been a thing in my todo list for long. It needs a lot of things to be in line for the feature to be robust and reliable. I am fixing things step by step (like my recent PR to organise our API). You might see the feature implemented soon.

Till then as a workaround, you can send POST requests with your choices directly to the /builds api endpoint. That way you can save your request body somewhere and use it to repeat requests. See /api/docs for API documentation. But this is non-GUI way totally which might not be what you are looking for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request - Repeat build or some faster way to re enter build selections

3 participants