Do git clean in autorelease-checkout-gerrit-patch 93/64193/7
authorVratko Polak <vrpolak@cisco.com>
Thu, 12 Oct 2017 12:00:59 +0000 (14:00 +0200)
committerVratko Polak <vrpolak@cisco.com>
Mon, 16 Oct 2017 10:21:36 +0000 (12:21 +0200)
commit1cb37197e1a47dcb6737a13cafaa5515ec85f107
tree7e8be1a7bfe20a6ba88a57c42eef6df15c16a011
parentdee60d000f469b35776d44c9d15e6d6ce7a2dc09
Do git clean in autorelease-checkout-gerrit-patch

For a patch which removes a submodule (project leaving autorelease)
checking out HEAD before autorelease-checkout-gerrit-patch
was causing the project directory be present during verify-autorelease
which could lead to false Verified+1.

Recent example: Removing Yangtools
without updating validate-pom.xml properly.

This change adds forceful clean to autorelease-checkout-gerrit-patch.
The jacoco workaround now has to be applied after such cleaning.

Change-Id: I651a7eaa212835d6cce52ee3706a85f12189f244
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
jjb/autorelease/autorelease-macros.yaml
jjb/autorelease/autorelease-templates.yaml