Add EST MS Teams Notifications for Rebase Jobs
[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       - est-ms-teams-rebase-jobs-webhook
10
11     parameters:
12       - onap-gerrit-parameters
13       - string:
14           name: PROJECT
15           default: '{project}'
16           description: JJB configured PROJECT parameter to identify a Nordix Gerrit project
17       - string:
18           name: NORDIX_REMOTE
19           default: 'ssh://infra@gerrit.nordix.org:29418/onap/{project}.git'
20           description: The remote to add for Nordix.
21
22     scm:
23       - git-scm:
24           ssh-credentials-id: nordixinfra-lfn-gerrit-ssh
25           branch: 'master'
26           refspec: ''
27           wipe_workspace: false
28           clean_before: true
29
30     triggers:
31       - onap-gerrit-trigger-change-merged:
32           project: '{project}'
33           branch: '**'
34           files: '**'
35       - timed: "@midnight"
36
37     wrappers:
38       - build-timeout:
39           timeout: 10
40       - ssh-agent-credentials:
41           users:
42             - 'nordixinfra-nordix-gerrit-ssh'
43
44     builders:
45       - shell:
46           !include-raw-escape: ../global/rebase-jobs.sh
47
48     publishers:
49       - notify-slack:
50           slack-channel: '#infra'
51           notify-start: false
52           notify-success: false
53           notify-failure: true
54           notify-back-to-normal: true