Merge "Migrate to gerrit-maven-stage (MSB)"
[ci-management.git] / jjb / vnfrqts / build-and-upload.yaml
1 ---
2 - job-template:
3     # Job template for running a script to build an artifact and
4     # upload it to nexus as RAW artifacts.
5     #
6
7     name: '{project-name}-{stream}-build-and-upload'
8
9     pre_script: ''
10     post_script: ''
11     artifact_name: ''
12     project_id: ''
13
14     project-type: freestyle
15     concurrent: true
16     node: '{build-node}'
17
18     properties:
19       - infra-properties:
20           build-days-to-keep: '{build-days-to-keep}'
21
22     parameters:
23       - infra-parameters:
24           project: '{project}'
25           branch: '{branch}'
26           refspec: 'refs/heads/{branch}'
27           artifacts: '{archive-artifacts}'
28
29     scm:
30       - git:
31           credentials-id: '{jenkins-ssh-credential}'
32           url: '$GIT_BASE'
33           refspec: ''
34           choosing-strategy: 'default'
35           branches:
36             - 'refs/heads/{branch}'
37           skip-tag: true
38           wipe-workspace: true
39           submodule:
40             recursive: '{submodule-recursive}'
41             timeout: '24'
42
43     wrappers:
44       - infra-wrappers:
45           build-timeout: '{build-timeout}'
46
47     triggers:
48       - timed: 'H H * * *'
49       - gerrit-trigger-release-manually:
50           server: '{server-name}'
51           project: '{project}'
52           branch: '{branch}'
53
54     builders:
55       - lf-provide-maven-settings:
56           global-settings-file: '{mvn-global-settings}'
57           settings-file: '{mvn-settings}'
58       - shell: '{obj:pre_script}'
59       - lf-infra-create-netrc:
60           server-id: ecomp-raw
61       - inject:
62           properties-content: |
63             ARTIFACT_NAME={artifact_name}
64             PROJECT_ID={project_id}
65       - shell: '{obj:post_script}'
66       - lf-provide-maven-settings-cleanup
67
68     publishers:
69       - infra-shiplogs:
70           maven-version: '{maven-version}'