ORANSC: Introduce ssh keys with passphrase for push-upstream jobs
[infra/cicd.git] / jjb / oransc / global-templates-oran-push-upstream.yaml
1 - job-template:
2     name: 'oransc-{project-name}-push-upstream'
3     node: infra-ubuntu1804
4     disabled: false
5     concurrent: false
6
7     properties:
8       - logrotate
9
10     parameters:
11       - string:
12           name: PROJECT
13           default: 'oransc/{project}'
14           description: JJB configured PROJECT parameter to identify a Nordix Gerrit project
15       - nordix-gerrit-parameters
16
17     scm:
18       - git-scm-gerrit:
19           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
20           branch: $GERRIT_BRANCH
21           refspec: $GERRIT_REFSPEC
22           wipe_workspace: true
23           clean_before: false
24
25     triggers:
26       - nordix-gerrit-push-upstream:
27           project: 'oransc/{project}'
28           branch: '**'
29           files: '**'
30
31     wrappers:
32       - build-timeout:
33           timeout: 10
34       - ssh-agent-credentials:
35           users:
36             - 'infra-upstream-gerrit-ssh-passphrase'
37
38     builders:
39       - shell:
40           !include-raw-escape: ./push-upstream-jobs.sh