OPENDEV: Add additional parameters to SCM module
[infra/cicd.git] / jjb / opendev / global-templates-opendev-push-upstream-test.yaml
1 - job-template:
2     name: 'opendev-{project-name}-push-upstream'
3
4     node: infra-build01-ubuntu1804
5
6     disabled: false
7
8     concurrent: true
9
10     properties:
11       - logrotate
12
13     parameters:
14       - string:
15           name: PROJECT
16           default: 'opendev/{project}'
17           description: JJB configured PROJECT parameter to identify a Nordix Gerrit project
18       - nordix-gerrit-parameters
19
20     scm:
21       - git-scm-gerrit:
22           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
23           branch: $GERRIT_BRANCH
24           refspec: $GERRIT_REFSPEC
25           wipe_workspace: true
26           clean_before: false
27
28     triggers:
29       - nordix-gerrit-patchset-created-or-push-upstream:
30           project: 'opendev/{project}'
31           branch: '**'
32           files: '**'
33
34     wrappers:
35       - build-timeout:
36           timeout: 10
37
38     builders:
39       - shell:
40           !include-raw-escape: ./push-upstream-jobs.sh
41
42     publishers:
43       - notify-slack:
44           slack-channel: '#infra'