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: '' |
| 12 | |
Hagop Bozawglanian | 9ca42f6 | 2019-02-04 23:59:18 +0000 | [diff] [blame] | 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: |
Hagop Bozawglanian | 822531a | 2019-02-14 23:32:34 +0000 | [diff] [blame] | 50 | - lf-provide-maven-settings: |
| 51 | global-settings-file: '{mvn-global-settings}' |
| 52 | settings-file: '{mvn-settings}' |
Hagop Bozawglanian | 9328ffe | 2019-02-11 19:47:37 +0000 | [diff] [blame] | 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 |
Hagop Bozawglanian | 9ca42f6 | 2019-02-04 23:59:18 +0000 | [diff] [blame] | 61 | |
| 62 | publishers: |
| 63 | - infra-shiplogs: |
Hagop Bozawglanian | 9328ffe | 2019-02-11 19:47:37 +0000 | [diff] [blame] | 64 | maven-version: '{maven-version}' |