Sure.
What I also tried was to define previousArtifact in defaultSettings, but I couldn't get hold of the project id from there.