OpenDaylight: Improve jenkins jobs for OpenDaylight projects
- Mirror branches from OpenDaylight upstream project to Nordix.
- Do not force the git user.name to be the gerrit id.
Git authorship can be independent from the
gerrit review ownership now.
- Cache the repository on the Jenkins slave nodes
when rebasing repositories.
- Make sure the commit hash in the local repo is the same
as in nordix Gerrit and the same as the commit hash
in the upstream gerrit.
- Decrease number of jobs required for project in Jenkins
Change-Id: Ia0bb2094375ec3ccf14af28ce65f09ad0613fb3f
diff --git a/jjb/opendaylight/global-templates-opendaylight-rebase.yaml b/jjb/opendaylight/global-templates-opendaylight-rebase.yaml
index f7dab86..e692139 100644
--- a/jjb/opendaylight/global-templates-opendaylight-rebase.yaml
+++ b/jjb/opendaylight/global-templates-opendaylight-rebase.yaml
@@ -1,5 +1,5 @@
- job-template:
- name: 'opendaylight-{project-name}-{stream}-rebase'
+ name: 'opendaylight-{project-name}-rebase'
node: infra-ubuntu1804
@@ -11,9 +11,6 @@
- logrotate
parameters:
- - project-parameters:
- project: '{project}'
- branch: '{branch}'
- odl-gerrit-parameters
- string:
name: NORDIX_REMOTE
@@ -23,15 +20,15 @@
scm:
- git-scm:
ssh-credentials-id: nordixinfra-lfn-gerrit-ssh
- branch: '{branch}'
+ branch: 'master'
refspec: ''
- wipe_workspace: true
- clean_before: false
+ wipe_workspace: false
+ clean_before: true
triggers:
- odl-gerrit-trigger-change-merged:
project: '{project}'
- branch: '{branch}'
+ branch: '**'
files: '**'
- timed: "@midnight"
@@ -41,7 +38,7 @@
builders:
- shell:
- !include-raw-escape: ../global/rebase-jobs.sh
+ !include-raw-escape: ./rebase-jobs.sh
publishers:
- notify-slack: