I moved my app from a private Bit Bucket account to an organization.
This means that the URL has changed.
But there is no way to change an repo URL.
The only way seems to be to delete the build setting and recreate, loosing all previous build information.
Hi @andreasbergqvist, this is correct. At this time, connecting to a new repo (or changed URL) in the same app will delete your prior build history. Another option to keep the history would be to create a new app connected to the new repo URL. However, this would require reconfiguring everything which I understand is less than ideal. I've added the feature request tag to this issue and we'll monitor this for the future.
@andreasbergqvist can you reach out to App Center support regarding this and have them connect you to Build support? You can reference this GitHub issue so they have context. We may have a workaround for this change.
Hi, I started with reaching out to the support. They asked me to create an issue here =)
Apologies on the back and forth 馃檨 Found your support thread and reached out there!
Close this as we are handling it via support
So, is the current suggested path to do this by contacting support?
So, is the current suggested path to do this by contacting support?
I have an API endpoint that I received from support that did work. Not sure if the people at appcenter want me to share it? 馃槵
@anka-213 Working on a documentation update with the public API endpoint mentioned by @andreasbergqvist . In short you can use an API client to call PATCH https://appcenter.ms/api/v0.1/apps/{owner_name}/{app_name}/repo_config, with request body like:
{
"repo_url": <new git url>
}
If unsure about the url format, check the response from GET https://appcenter.ms/api/v0.1/apps/{owner_name}/{app_name}/repo_config as a starting point.
Other general information about App Center APIs: https://docs.microsoft.com/en-us/appcenter/api-docs/
Feel free to reach out to support if any question.
Message from App Center support - if your URL is updated but you're still not seeing the change during build, make sure to hit "save & build" again from the build configuration page in the portal
Most helpful comment
@anka-213 Working on a documentation update with the public API endpoint mentioned by @andreasbergqvist . In short you can use an API client to call
PATCH https://appcenter.ms/api/v0.1/apps/{owner_name}/{app_name}/repo_config, with request body like:If unsure about the url format, check the response from
GET https://appcenter.ms/api/v0.1/apps/{owner_name}/{app_name}/repo_configas a starting point.Other general information about App Center APIs: https://docs.microsoft.com/en-us/appcenter/api-docs/
Feel free to reach out to support if any question.