f002b5d15b02215e26715a21680c3d51ac6b507f
[infra/cicd.git] / jjb / onap / global-templates-onap-rebase.yaml
1 - job-template:
2     name: 'onap-{project-name}-rebase'
3     node: infra-ubuntu2004
4     disabled: false
5     concurrent: false
6
7     properties:
8       - logrotate
9
10     parameters:
11       - onap-gerrit-parameters
12       - string:
13           name: PROJECT
14           default: '{project}'
15           description: JJB configured PROJECT parameter to identify a Nordix Gerrit project
16       - string:
17           name: NORDIX_REMOTE
18           default: 'ssh://infra@gerrit.nordix.org:29418/onap/{project}.git'
19           description: The remote to add for Nordix.
20
21     scm:
22       - git-scm:
23           ssh-credentials-id: nordixinfra-lfn-gerrit-ssh
24           branch: 'master'
25           refspec: ''
26           wipe_workspace: false
27           clean_before: true
28
29     triggers:
30       - onap-gerrit-trigger-change-merged:
31           project: '{project}'
32           branch: '**'
33           files: '**'
34       - timed: "@midnight"
35
36     wrappers:
37       - build-timeout:
38           timeout: 10
39       - ssh-agent-credentials:
40           users:
41             - 'nordixinfra-nordix-gerrit-ssh'
42
43     builders:
44       - shell:
45           !include-raw-escape: ../global/rebase-jobs.sh
46
47     publishers:
48       - notify-slack:
49           slack-channel: '#infra'
50           notify-start: false
51           notify-success: false
52           notify-failure: true
53           notify-back-to-normal: true