blob: 69f158cea5aad04dabf22c199b1aaa80feed9899 [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: ''
Hagop Bozawglanianfc540d42019-02-26 21:42:22 +000012 project_id: ''
Hagop Bozawglanian9328ffe2019-02-11 19:47:37 +000013
Hagop Bozawglanian9ca42f62019-02-04 23:59:18 +000014 project-type: freestyle
15 concurrent: true
Lovett, Trevorbec0e1a2020-03-12 11:14:01 -050016 node: ubuntu1804-docker-8c-8g
Hagop Bozawglanian9ca42f62019-02-04 23:59:18 +000017
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 * * *'
Hagop Bozawglanian90e18852019-02-28 23:11:08 +000049 - gerrit-trigger-release-manually:
50 server: '{server-name}'
51 project: '{project}'
52 branch: '{branch}'
Hagop Bozawglanian9ca42f62019-02-04 23:59:18 +000053
54 builders:
Hagop Bozawglanian822531a2019-02-14 23:32:34 +000055 - lf-provide-maven-settings:
56 global-settings-file: '{mvn-global-settings}'
57 settings-file: '{mvn-settings}'
Hagop Bozawglanian9328ffe2019-02-11 19:47:37 +000058 - shell: '{obj:pre_script}'
59 - lf-infra-create-netrc:
60 server-id: ecomp-raw
61 - inject:
62 properties-content: |
63 ARTIFACT_NAME={artifact_name}
Hagop Bozawglanianfc540d42019-02-26 21:42:22 +000064 PROJECT_ID={project_id}
Hagop Bozawglanian9328ffe2019-02-11 19:47:37 +000065 - shell: '{obj:post_script}'
66 - lf-provide-maven-settings-cleanup
Hagop Bozawglanian9ca42f62019-02-04 23:59:18 +000067
68 publishers:
69 - infra-shiplogs:
Lovett, Trevorbec0e1a2020-03-12 11:14:01 -050070 maven-version: '{maven-version}'