tfsaggregator / aggregator-cli

A new version of Aggregator aiming at Azure DevOps (ex Visual Studio Team Services)
https://tfsaggregator.github.io/
Apache License 2.0
73 stars 32 forks source link

error:API resource location is not registered on Azure devops Server (URL) #285

Open indreshmourya1106 opened 1 year ago

indreshmourya1106 commented 1 year ago

HI Team , i am getting error "error:API resource location is not registered on Azure devops Server (URL)" while trying to map rule. We are using docker image of aggregator and have on prim azure devops server. kindly help

indreshmourya1106 commented 1 year ago

can anyone help here? I am not able to test it via command after docker configuration , we have on prim azure devops server ,version 2022 RC1

giuliov commented 1 year ago

Configuring docker is complex. Given that I do not have a lab with 2022 RC1, the only way to help you is have details on what you have done (which version are you using, which checklist you followed, verbose logging, etc.) and what is failing (a mispelled name can cause errors). Do not underestimate that you have the source code, can debug and pinpoint the exact line of code that is not working.

indreshmourya1106 commented 1 year ago

Configuring docker is complex. Given that I do not have a lab with 2022 RC1, the only way to help you is have details on what you have done (which version are you using, which checklist you followed, verbose logging, etc.) and what is failing (a mispelled name can cause errors). Do not underestimate that you have the source code, can debug and pinpoint the exact line of code that is not working.

We have docker host machine which has windows server 2019 and On prim azure devops Server 2022 RC1.We are trying to configure TFS aggregator for enable some rule for Azure devops server.

We have done below step so far :

• DNS entry for Aggregator • generated a valid certificate in .pfx format (matches the above) • pulled the docker image (docker pull tfsaggregator/aggregator3:latest) • prepare apikeys.json • copied the pfx and json files above in a secrets directory on the docker host • writtene the rule files • copied the rule files in a rules directory on the docker host • ran the container, mounting both the secrets and rules directories, and defining the Aggregator_SharedSecret environment variable.

docker run --rm -it -p 5320:5320 -e Aggregator_SharedSecret=** -e Aggregator_VstsToken=** -e ASPNETCORE_KestrelCertificatesDefault__Password="**" -e Aggregator_SharedSecret=** --mount type=bind,source=c:/src/github.com/tfsaggregator/aggregator-cli/docker/secrets/,target=c:/secrets --mount type=bind,source=c:/src/github.com/tfsaggregator/aggregator-cli/docker/rules/,target=c:/rules tfsaggregator/aggregator3:latest

Now I am not sure what should I do next