blob: 1e7b8cfb45f15895aebd7baf17e7dc0ef7653337 [file] [log] [blame]
Hagop Bozawglanian9ca42f62019-02-04 23:59:18 +00001---
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
Hagop Bozawglanian9328ffe2019-02-11 19:47:37 +00009 pre_script: ''
10 post_script: ''
11 artifact_name: ''
12
Hagop Bozawglanian9ca42f62019-02-04 23:59:18 +000013 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:
Hagop Bozawglanian822531a2019-02-14 23:32:34 +000050 - lf-provide-maven-settings:
51 global-settings-file: '{mvn-global-settings}'
52 settings-file: '{mvn-settings}'
Hagop Bozawglanian9328ffe2019-02-11 19:47:37 +000053 - 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
Hagop Bozawglanian9ca42f62019-02-04 23:59:18 +000061
62 publishers:
63 - infra-shiplogs:
Hagop Bozawglanian9328ffe2019-02-11 19:47:37 +000064 maven-version: '{maven-version}'