gesellix
03/08/2022, 1:20 PMfor pacticpant in "${pacticipants}"
do
pact-cli broker create-version-tag --pacticipant="${pacticipant}" --version="${version}" --tag=${tag}
done
Is there a simpler way of tagging every pacticipant in a Maven project or at least collecting the list of pacticipants?Nathan Deamer
03/08/2022, 2:24 PMgesellix
03/08/2022, 2:45 PMgesellix
03/08/2022, 2:51 PMNathan Deamer
03/08/2022, 2:59 PMpact.consumer.tags
gesellix
03/08/2022, 4:59 PMgesellix
03/08/2022, 5:00 PMMatt (pactflow.io / pact-js / pact-go)
--tag
flag can be specified multiple times, if that’s what you’re asking?gesellix
03/09/2022, 7:46 PM--pacticipant
flags, so that I wouldn't have to execute the command multiple times, but before doing so I'm still struggling to find an easy way of collecting all pacticipant names in my repo.
Maybe I'll try to describe again and you can tell me whether I'm overcomplicating things or overlooked some detail:
• We have a Maven multi-module project (400 modules), where some modules are consumers C, and some modules are providers P.
• Some C and P have contracts to services outside of the multi-module project.
• Publishing C Pacts works, along with the global version of the complete multi-module project, using the Pact Maven plugin.
• Verifying for P works as well (via JUnit5 tests).
• Releasing/Deploying always deploys every C and P at the same time (did I mention the monolith? 😉 ) for the whole project.
• After successful deployment, C and P have to be tagged with the deployed stage, and this is where I'm struggling.
• At that step, I know the deployed version and the stage, but I don't know all the names for C and P. I actually never know them at all, because everything is delegated to the Pact libraries/plugins.
So, I'd wish for some kind of report or file, where all C and P are collected, maybe as outcome of the publishing and verification steps. I can certainly use the log output, but you certainly agree that this doesn't feel very reliable.
To conclude:
• Am I missing some detail or do I have to tag the pacticipant version somewhere else?
• Is there a convenient tool to collect every pacticipant in a given rep?gesellix
03/09/2022, 7:48 PM