Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Bots Set Current Integration Number

I had to restore my OSX Server from backup and now the latest integration number is lower than I need it to be. I am using the integration number to set the build number for beta distribution.

Is there a way to set the current integration number i.e. XCS_INTEGRATION_NUMBER?

like image 302
Onato Avatar asked Jan 02 '26 04:01

Onato


1 Answers

Xcode server has a REST API that allows changing the integration counter value.

Basically, you can use cURL to update the integration counter with the following command:

curl -u <xcode-server-user>:<password> -H "Content-Type: application/json" -X PATCH -d '{"set_props":{"integration_counter":<desired-integration-counter>}}' --insecure https://<xcode-server-address>:20343/api/bots/<bot-id>

The bot-id can be obtained easily from any of the past integration logs.

For more information, check out the documentation here: https://developer.apple.com/library/content/documentation/Xcode/Conceptual/XcodeServerAPIReference/Bots.html

And also, the answer to this question: https://forums.developer.apple.com/thread/19868

like image 89
tamiro Avatar answered Jan 06 '26 12:01

tamiro



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!