Discard old builds
[infra/cicd.git] / jjb / global / global-templates-rebase.yaml
1 - job-template:
2     name: '{project-name}-{stream}-rebase'
3
4     node: infra-build01-ubuntu1804
5
6     disabled: false
7
8     concurrent: false
9
10     properties:
11       - logrotate
12
13     parameters:
14       - project-parameters:
15           project: '{project}'
16           branch: '{branch}'
17       - onap-gerrit-parameters
18       - string:
19           name: NORDIX_REMOTE
20           default: 'ssh://infra@gerrit.nordix.org:29418/{project}.git'
21           description: The remote to add for Nordix.
22
23     scm:
24       - git-scm:
25           ssh-credentials-id: nordixinfra-lfn-gerrit-ssh
26           branch: '{branch}'
27           refspec: ''
28
29     triggers:
30       - onap-gerrit-trigger-change-merged:
31           project: '{project}'
32           branch: '{branch}'
33           files: '**'
34
35     wrappers:
36       - build-timeout:
37           timeout: 10
38
39     builders:
40       - shell:
41           !include-raw-escape: ./rebase-jobs.sh
42
43     publishers:
44       - notify-slack:
45           slack-channel: '#infra'