commit | 7e507875f63896df2bfd2e3efe33da2a9521f6ad | [log] [tgz] |
---|---|---|
author | robert.tomczyk <robert.tomczyk@est.tech> | Tue Jun 18 17:20:26 2019 +0100 |
committer | robert.tomczyk <robert.tomczyk@est.tech> | Tue Jun 18 17:28:07 2019 +0100 |
tree | 8afb947555eb0053711c5c8d2b0e1f62197cbe62 | |
parent | 4f447ced7f3318251b99ff4c317f6dbaf526bdd3 [diff] |
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: