ACUMOS: Improve jenkins jobs for Acumos projects
- Mirror branches from Acumos 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: I29ea8b9b2573b5d894246f47b537aeb61027f6f8
diff --git a/jjb/acumos/global-templates-acumos-push-upstream.yaml b/jjb/acumos/global-templates-acumos-push-upstream.yaml
index 2a31aaf..a0cf5b1 100644
--- a/jjb/acumos/global-templates-acumos-push-upstream.yaml
+++ b/jjb/acumos/global-templates-acumos-push-upstream.yaml
@@ -1,7 +1,7 @@
- job-template:
- name: 'acumos-{project-name}-{stream}-push-upstream'
+ name: 'acumos-{project-name}-push-upstream'
- node: onap-ubuntu1604
+ node: infra-build01-ubuntu1804
disabled: false
@@ -11,15 +11,16 @@
- logrotate
parameters:
- - project-parameters:
- project: 'acumos/{project}'
- branch: '{branch}'
+ - string:
+ name: PROJECT
+ default: 'acumos/{project}'
+ description: JJB configured PROJECT parameter to identify a Nordix Gerrit project
- nordix-gerrit-parameters
scm:
- git-scm-gerrit:
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
- branch: '{branch}'
+ branch: $GERRIT_BRANCH
refspec: $GERRIT_REFSPEC
wipe_workspace: true
clean_before: false
@@ -27,7 +28,7 @@
triggers:
- nordix-gerrit-push-upstream:
project: 'acumos/{project}'
- branch: '{branch}'
+ branch: '**'
files: '**'
wrappers: