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
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
branch: '{branch}'
refspec: $GERRIT_REFSPEC
+ wipe_workspace: true
+ clean_before: false
triggers:
- nordix-gerrit-trigger-patchset-created:
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
branch: '{branch}'
refspec: $GERRIT_REFSPEC
+ wipe_workspace: true
+ clean_before: false
triggers:
- nordix-gerrit-push-upstream:
ssh-credentials-id: nordixinfra-lfn-gerrit-ssh
branch: '{branch}'
refspec: ''
+ wipe_workspace: true
+ clean_before: false
triggers:
- acumos-gerrit-trigger-change-merged:
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
branch: '{branch}'
refspec: ''
+ wipe_workspace: true
+ clean_before: false
triggers:
- timed: '{build-trigger}'
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
branch: '{branch}'
refspec: ''
+ wipe_workspace: true
+ clean_before: false
builders:
- 'cloud-infra-{phase}-macro'
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
branch: '{branch}'
refspec: ''
+ wipe_workspace: true
+ clean_before: false
triggers:
- timed: '@daily'
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
branch: '{branch}'
refspec: ''
+ wipe_workspace: true
+ clean_before: false
builders:
- description-setter:
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
branch: '{branch}'
refspec: $GERRIT_REFSPEC
+ wipe_workspace: true
+ clean_before: false
triggers:
- gerrit:
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
branch: '{branch}'
refspec: $GERRIT_REFSPEC
+ wipe_workspace: true
+ clean_before: false
builders:
- 'cloud-infra-determine-scenario-macro'
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
branch: '{branch}'
refspec: $GERRIT_REFSPEC
+ wipe_workspace: true
+ clean_before: false
triggers:
- nordix-gerrit-trigger-patchset-created:
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
branch: '{branch}'
refspec: $GERRIT_REFSPEC
+ wipe_workspace: true
+ clean_before: false
builders:
- 'cloud-infra-determine-scenario-macro'
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
branch: '{branch}'
refspec: $GERRIT_REFSPEC
+ wipe_workspace: true
+ clean_before: false
triggers:
- nordix-gerrit-trigger-patchset-created:
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
branch: '{branch}'
refspec: $GERRIT_REFSPEC
+ wipe_workspace: true
+ clean_before: false
builders:
- 'cloud-infra-testfw-macro'
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
branch: '{branch}'
refspec: $GERRIT_REFSPEC
+ wipe_workspace: true
+ clean_before: false
triggers:
- nordix-gerrit-trigger-patchset-created:
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
branch: '{branch}'
refspec: $GERRIT_REFSPEC
+ wipe_workspace: true
+ clean_before: false
triggers:
- nordix-gerrit-push-upstream:
ssh-credentials-id: nordixinfra-lfn-gerrit-ssh
branch: '{branch}'
refspec: ''
+ wipe_workspace: true
+ clean_before: false
triggers:
- onap-gerrit-trigger-change-merged:
shallow-clone: false
use-author: false
ignore-notify: false
- wipe-workspace: true
+ wipe-workspace: '{wipe_workspace}'
prune: false
+ clean:
+ after: false
+ before: '{clean_before}'
choosing-strategy: 'default'
- scm:
shallow-clone: false
use-author: false
ignore-notify: false
- wipe-workspace: true
+ wipe-workspace: '{wipe_workspace}'
prune: false
+ clean:
+ after: false
+ before: '{clean_before}'
choosing-strategy: 'gerrit'
# triggers for Nordix Gerrit
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
branch: '{branch}'
refspec: ''
+ wipe_workspace: true
+ clean_before: false
triggers:
- nordix-gerrit-trigger-change-merged:
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
branch: '{branch}'
refspec: $GERRIT_REFSPEC
+ wipe_workspace: true
+ clean_before: false
triggers:
- nordix-gerrit-trigger-patchset-created:
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
branch: '{branch}'
refspec: $GERRIT_REFSPEC
+ wipe_workspace: true
+ clean_before: false
triggers:
- nordix-gerrit-trigger-patchset-created:
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
branch: '{branch}'
refspec: $GERRIT_REFSPEC
+ wipe_workspace: true
+ clean_before: false
triggers:
- nordix-gerrit-push-upstream:
ssh-credentials-id: nordixinfra-lfn-gerrit-ssh
branch: '{branch}'
refspec: ''
+ wipe_workspace: true
+ clean_before: false
triggers:
- onap-gerrit-trigger-change-merged:
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
branch: '{branch}'
refspec: $GERRIT_REFSPEC
+ wipe_workspace: true
+ clean_before: false
triggers:
- nordix-gerrit-push-upstream:
ssh-credentials-id: nordixinfra-lfn-gerrit-ssh
branch: '{branch}'
refspec: ''
+ wipe_workspace: true
+ clean_before: false
triggers:
- odl-gerrit-trigger-change-merged:
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:
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:
ssh-credentials-id: nordixinfra-lfn-gerrit-ssh
branch: 'master'
refspec: ''
+ wipe_workspace: false
+ clean_before: true
triggers:
- opendev-gerrit-trigger-change-merged:
ssh-credentials-id: nordixinfra-lfn-gerrit-ssh
branch: '{branch}'
refspec: ''
+ wipe_workspace: true
+ clean_before: false
triggers:
- opendev-gerrit-trigger-change-merged: