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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With