Make it possible to re-create ArtifactCreated events
This change add a force flag, which when is true make it possible to
create ArtifactCreated event for reused tags. This flag can only be
used when creating events through the REST endpoints.
The creation of ArtifactCreated event is also changed sligthly.
Before we always checked if there already was a CD and if there was
we used it. Now we skip this check and always create a new CD for
each new ArtifactCreated event. It should not matter much because if
we create a new ArtifactCreated event there should almost never be a
CD we can reuse(an exception is if Gerrit crash directly after a CD
creation).
Solves: Jira GER-1573
Change-Id: I6622fa714a99aaa1a121cedfdf3b567d435ebc4f
12 files changed