Hagop Bozawglanian | 9ca42f6 | 2019-02-04 23:59:18 +0000 | [diff] [blame] | 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 | |
Hagop Bozawglanian | 9328ffe | 2019-02-11 19:47:37 +0000 | [diff] [blame] | 9 | pre_script: '' |
| 10 | post_script: '' |
| 11 | artifact_name: '' |
Hagop Bozawglanian | fc540d4 | 2019-02-26 21:42:22 +0000 | [diff] [blame] | 12 | project_id: '' |
Hagop Bozawglanian | 9328ffe | 2019-02-11 19:47:37 +0000 | [diff] [blame] | 13 | |
Hagop Bozawglanian | 9ca42f6 | 2019-02-04 23:59:18 +0000 | [diff] [blame] | 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 * * *' |
Hagop Bozawglanian | 90e1885 | 2019-02-28 23:11:08 +0000 | [diff] [blame^] | 49 | - gerrit-trigger-release-manually: |
| 50 | server: '{server-name}' |
| 51 | project: '{project}' |
| 52 | branch: '{branch}' |
Hagop Bozawglanian | 9ca42f6 | 2019-02-04 23:59:18 +0000 | [diff] [blame] | 53 | |
| 54 | builders: |
Hagop Bozawglanian | 822531a | 2019-02-14 23:32:34 +0000 | [diff] [blame] | 55 | - lf-provide-maven-settings: |
| 56 | global-settings-file: '{mvn-global-settings}' |
| 57 | settings-file: '{mvn-settings}' |
Hagop Bozawglanian | 9328ffe | 2019-02-11 19:47:37 +0000 | [diff] [blame] | 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} |
Hagop Bozawglanian | fc540d4 | 2019-02-26 21:42:22 +0000 | [diff] [blame] | 64 | PROJECT_ID={project_id} |
Hagop Bozawglanian | 9328ffe | 2019-02-11 19:47:37 +0000 | [diff] [blame] | 65 | - shell: '{obj:post_script}' |
| 66 | - lf-provide-maven-settings-cleanup |
Hagop Bozawglanian | 9ca42f6 | 2019-02-04 23:59:18 +0000 | [diff] [blame] | 67 | |
| 68 | publishers: |
| 69 | - infra-shiplogs: |
Hagop Bozawglanian | 9328ffe | 2019-02-11 19:47:37 +0000 | [diff] [blame] | 70 | maven-version: '{maven-version}' |