Remove code duplication - single global rebase-jobs.sh script
[infra/cicd.git] / jjb / oransc / global-templates-oran-rebase.yaml
1 - job-template:
2     name: 'oransc-{project-name}-rebase'
3     node: infra-ubuntu1804
4     disabled: false
5     concurrent: false
6
7     properties:
8       - logrotate
9
10     parameters:
11       - oransc-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/oransc/{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       - oransc-gerrit-trigger-change-merged:
31           project: '{project}'
32           branch: '**'
33           files: '**'
34       - timed: "@midnight"
35
36     wrappers:
37       - build-timeout:
38           timeout: 10
39
40     builders:
41       - shell:
42           !include-raw-escape: ../global/rebase-jobs.sh
43
44     publishers:
45       - notify-slack:
46           slack-channel: '#infra'
47           notify-start: false
48           notify-success: false
49           notify-failure: true
50           notify-back-to-normal: true