Description
Hi there,
Thanks for providing this solution! I was about to write my own today to replace our IIS installation, but found this project so I'm glad I don't have to :).
I'm running the rugs:latest Docker image as of today (2024/04/11) and am having an issue with the example POST body as well as our existing internal tooling that's already interacting with Epic's IIS version. When attempting to post this body from the readme:
{
"Project": "//myproject/main/MyProject",
"ChangeNumber": 123,
"BuildType": "Editor",
"Result": "Starting",
"Url": "https://my.ci/jobs/100"
}
I get the following response:
Failed to deserialize the JSON body into the target type: Result: invalid type: string "Starting", expected u8 at line 5 column 22
Based on the TeamCity plugin's source, it looks like the Result is actually expecting the integer value of the Starting constant rather than the name, so I tried this and it did work:
{
"Project": "//myproject/main/MyProject",
"ChangeNumber": 123,
"BuildType": "Editor",
"Result": 0,
"Url": "https://my.ci/jobs/100"
}
Is this expected? Should we be able to use the name of the Result status (compatible with Epic's UGS) or do we have to use the numeric value of the enum instead?
Additionally, the readme says:
If you want more control over submitting badges from CI, you can make a
POST
request to/builds
I assume this is supposed to say "to /api/build
" since that's what the handler is listening for.
Activity