Artifact Deployment Detector
Detects whether artifacts have been deployed before
Quick steps to get started
An example variable for an artifact called "MyArtifact" would be:
RELEASE_ARTIFACTS_MYARTIFACT_PREVIOUSLYDEPLOYED and it will have a boolean value.
You can then use the variable in further tasks to know whether the artifact has been deployed before.
The source to this extension is available. Feel free to take, fork, and extend.