VNFRQTS - Update JJB to upload artifacts
[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
13     project-type: freestyle
14     concurrent: true
15     node: '{build-node}'
16
17     properties:
18       - infra-properties:
19           build-days-to-keep: '{build-days-to-keep}'
20
21     parameters:
22       - infra-parameters:
23           project: '{project}'
24           branch: '{branch}'
25           refspec: 'refs/heads/{branch}'
26           artifacts: '{archive-artifacts}'
27
28     scm:
29       - git:
30           credentials-id: '{jenkins-ssh-credential}'
31           url: '$GIT_BASE'
32           refspec: ''
33           choosing-strategy: 'default'
34           branches:
35             - 'refs/heads/{branch}'
36           skip-tag: true
37           wipe-workspace: true
38           submodule:
39             recursive: '{submodule-recursive}'
40             timeout: '24'
41
42     wrappers:
43       - infra-wrappers:
44           build-timeout: '{build-timeout}'
45
46     triggers:
47       - timed: 'H H * * *'
48
49     builders:
50       - lf-provide-maven-settings:
51           global-settings-file: '{mvn-global-settings}'
52           settings-file: '{mvn-settings}'
53       - shell: '{obj:pre_script}'
54       - lf-infra-create-netrc:
55           server-id: ecomp-raw
56       - inject:
57           properties-content: |
58             ARTIFACT_NAME={artifact_name}
59       - shell: '{obj:post_script}'
60       - lf-provide-maven-settings-cleanup
61
62     publishers:
63       - infra-shiplogs:
64           maven-version: '{maven-version}'