OPENDEV: Add additional parameters to SCM module

The projects should have control about their workspace.
Following parmaters are introduced for git-scm and git-scm-gerrit
to control what should be done with git repository when the
jenkins job is executed:
- wipe_workspace: Wipe out repository and force clone (default: true)
- clean_before: Clean up the workspace before every checkout
  by deleting all untracked files and directories (default: false)

Change-Id: I6216334251d9af8c0c6b9818b2ef3280d6196ef5
diff --git a/jjb/opendev/global-templates-opendev-push-upstream-test.yaml b/jjb/opendev/global-templates-opendev-push-upstream-test.yaml
index e9d545e..5b8bfb6 100644
--- a/jjb/opendev/global-templates-opendev-push-upstream-test.yaml
+++ b/jjb/opendev/global-templates-opendev-push-upstream-test.yaml
@@ -22,6 +22,8 @@
           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
           branch: $GERRIT_BRANCH
           refspec: $GERRIT_REFSPEC
+          wipe_workspace: true
+          clean_before: false
 
     triggers:
       - nordix-gerrit-patchset-created-or-push-upstream:
diff --git a/jjb/opendev/global-templates-opendev-push-upstream.yaml b/jjb/opendev/global-templates-opendev-push-upstream.yaml
index addf5f4..0720002 100644
--- a/jjb/opendev/global-templates-opendev-push-upstream.yaml
+++ b/jjb/opendev/global-templates-opendev-push-upstream.yaml
@@ -21,6 +21,8 @@
           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
           branch: '{branch}'
           refspec: $GERRIT_REFSPEC
+          wipe_workspace: true
+          clean_before: false
 
     triggers:
       - nordix-gerrit-patchset-created-or-push-upstream:
diff --git a/jjb/opendev/global-templates-opendev-rebase-test.yaml b/jjb/opendev/global-templates-opendev-rebase-test.yaml
index b96f0b0..b915c8b 100644
--- a/jjb/opendev/global-templates-opendev-rebase-test.yaml
+++ b/jjb/opendev/global-templates-opendev-rebase-test.yaml
@@ -26,6 +26,8 @@
           ssh-credentials-id: nordixinfra-lfn-gerrit-ssh
           branch: 'master'
           refspec: ''
+          wipe_workspace: false
+          clean_before: true
 
     triggers:
       - opendev-gerrit-trigger-change-merged:
diff --git a/jjb/opendev/global-templates-opendev-rebase.yaml b/jjb/opendev/global-templates-opendev-rebase.yaml
index c376ed4..fc5d391 100644
--- a/jjb/opendev/global-templates-opendev-rebase.yaml
+++ b/jjb/opendev/global-templates-opendev-rebase.yaml
@@ -25,6 +25,8 @@
           ssh-credentials-id: nordixinfra-lfn-gerrit-ssh
           branch: '{branch}'
           refspec: ''
+          wipe_workspace: true
+          clean_before: false
 
     triggers:
       - opendev-gerrit-trigger-change-merged: