I am trying to create specs using java code to publish:
mvn -X -Ppublish-specs -Dbamboo.specs.log.level=TRACE
However, when trying to publish I am getting the following error:
build 26-Mar-2020 12:10:50 2020-03-26 12:10:50,045 TRACE [RestHelper] POST https://<bambo-server>/rest/api/latest/import/plan HTTP/1.1 - sending
build 26-Mar-2020 12:10:51 2020-03-26 12:10:51,971 TRACE [RestHelper] POST https://<bambo-server>/rest/api/latest/import/plan HTTP/1.1 - failed, status: 400, error: Duplicate key 141361704
build 26-Mar-2020 12:10:51 2020-03-26 12:10:51,974 TRACE [RestHelper] {"message":"Duplicate key 141361704","status-code":400}
build 26-Mar-2020 12:10:51 2020-03-26 12:10:51,977 INFO [BambooServer] An error occurred while publishing plan MOLECULETESTS-FDJAFKSJDF: Duplicate key 141361704
build 26-Mar-2020 12:10:51 2020-03-26 12:10:51,979 DEBUG [BambooServer] {"message":"Duplicate key 141361704","status-code":400}
This plan does not exist, e.g. if I try the following:
https://<bambo-server>/exportSpecs/plan.action?buildKey=MOLECULETESTS-FDJAFKSJDF
Then it will return "Export to Bamboo Specs failed: null" as it does not exist.
How can I find out what key it thinks is duplicated?