Create jjb for datafile rebase jobs
[infra/cicd.git] / jjb / global / global-templates-rebase.yaml
1 - job-template:
2     name: '{project-name}-{stream}-rebase'
3
4     node: ubuntu1804
5
6     disabled: false
7
8     concurrent: false
9
10     parameters:
11       - project-parameters:
12           project: '{project}'
13           branch: '{branch}'
14       - onap-gerrit-parameters
15       - string:
16           name: NORDIX_REMOTE
17           default: 'ssh://infra@gerrit.nordix.org:29418/{project}.git'
18           description: The remote to add for Nordix.
19       - string:
20           name: UPSTREAM_BRANCH
21           default: '{upstream-branch}'
22           description: The upstream branch to rebase against.
23
24     scm:
25       - git-scm:
26           ssh-credentials-id: nordixinfra-lfn-gerrit-ssh
27           branch: "$UPSTREAM_BRANCH"
28           refspec: ''
29
30     triggers:
31       - onap-gerrit-trigger-change-merged:
32           project: '{project}'
33           branch: "$UPSTREAM_BRANCH"
34           files: '**'
35
36     builders:
37       - shell:
38           !include-raw-escape: ./rebase-jobs.sh