parameters:
- project-parameter:
project: '{project}'
- - foreman-parameters:
- installer: '{installer}'
- gerrit-parameter:
branch: 'master'
+ - foreman-parameter:
+ installer: '{installer}'
scm:
- gerrit-trigger-scm:
parameters:
- project-parameter:
project: '{project}'
- - foreman-parameters:
- installer: '{installer}'
- gerrit-parameter:
branch: 'master'
+ - foreman-parameter:
+ installer: '{installer}'
scm:
- gerrit-trigger-scm:
parameters:
- project-parameter:
project: '{project}'
- - foreman-parameters:
+ - foreman-parameter:
installer: '{installer}'
scm:
- - git:
- skip-tag: true
- url: $GIT_BASE
- branches:
- - $GERRIT_BRANCH
- refspec: $GERRIT_REFSPEC
+ - git-scm:
+ credentials-id: '{ssh-credentials}'
+ refspec: ''
+ branch: master
triggers:
- - pollscm: '@midnight'
+ - timed: '@midnight'
logrotate:
daysToKeep: 30
parameters:
- project-parameter:
project: '{project}'
- - foreman-parameters:
+ - foreman-parameter:
installer: '{installer}'
scm:
- - git:
- skip-tag: true
- url: $GIT_BASE
- branches:
- - $GERRIT_BRANCH
- refspec: $GERRIT_REFSPEC
+ - git-scm:
+ credentials-id: '{ssh-credentials}'
+ refspec: ''
+ branch: master
builders:
- 'foreman-build'
parameters:
- project-parameter:
project: '{project}'
- - foreman-parameters:
+ - foreman-parameter:
installer: '{installer}'
scm:
- - git:
- skip-tag: true
- url: $GIT_BASE
- branches:
- - $GERRIT_BRANCH
- refspec: $GERRIT_REFSPEC
+ - git-scm:
+ credentials-id: '{ssh-credentials}'
+ refspec: ''
+ branch: master
builders:
- 'foreman-deploy'
# parameter macros
########################
- parameter:
- name: foreman-parameters
+ name: foreman-parameter
parameters:
- string:
name: INSTALLER
name: GIT_BASE
default: https://gerrit.opnfv.org/gerrit/$PROJECT
description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
- - string:
- name: GERRIT_BRANCH
- default: origin/master
- description: "Branch to build, deploy and test."
- - string:
- name: GERRIT_REFSPEC
- default: refs/heads/master
- description: "Refspec to retrieve."
- string:
name: GS_URL
default: artifacts.opnfv.org/$PROJECT/$INSTALLER