Gary Wu | c652d4a | 2017-09-22 13:33:42 -0700 | [diff] [blame] | 1 | --- |
| 2 | - job-template: |
| 3 | name: '{project-name}-{stream}-{subproject}-docker-merge' |
| 4 | project-type: freestyle |
| 5 | node: 'ubuntu1604-docker-8c-8g' |
| 6 | docker-image-name: '' |
| 7 | |
| 8 | properties: |
| 9 | - infra-properties: |
| 10 | build-days-to-keep: '{build-days-to-keep}' |
| 11 | |
| 12 | parameters: |
| 13 | - infra-parameters: |
| 14 | project: '{project}' |
| 15 | branch: '{branch}' |
| 16 | refspec: 'refs/heads/{branch}' |
| 17 | artifacts: '{archive-artifacts}' |
| 18 | - maven-exec: |
| 19 | maven-version: '{maven-version}' |
| 20 | - docker-image-name: |
| 21 | docker-image-name: '{docker-image-name}' |
| 22 | |
| 23 | scm: |
| 24 | - gerrit-trigger-scm: |
| 25 | refspec: '' |
| 26 | choosing-strategy: 'default' |
| 27 | submodule-recursive: '{submodule-recursive}' |
| 28 | |
| 29 | wrappers: |
| 30 | - infra-wrappers: |
| 31 | build-timeout: '{build-timeout}' |
| 32 | |
| 33 | triggers: |
| 34 | # 12 AM UTC |
| 35 | - timed: 'H 12 * * *' |
| 36 | - gerrit-trigger-patch-merged: |
| 37 | server: '{server-name}' |
| 38 | project: '{project}' |
| 39 | branch: '{branch}' |
| 40 | files: '{pattern}' |
| 41 | |
| 42 | builders: |
| 43 | |
| 44 | - provide-maven-settings: |
| 45 | global-settings-file: 'global-settings' |
| 46 | settings-file: '{mvn-settings}' |
| 47 | |
| 48 | - docker-login |
| 49 | |
| 50 | - maven-target: |
| 51 | maven-version: '{maven-version}' |
| 52 | pom: '{pom}' |
| 53 | goals: 'clean package docker:build docker:push' |
| 54 | settings: '{mvn-settings}' |
| 55 | settings-type: cfp |
| 56 | global-settings: 'global-settings' |
| 57 | global-settings-type: cfp |
| 58 | properties: |
| 59 | - docker.pull.registry=nexus3.onap.org:10001 |
| 60 | - docker.push.registry=nexus3.onap.org:10003 |
| 61 | |
| 62 | publishers: |
| 63 | - infra-shiplogs: |
| 64 | maven-version: '{maven-version}' |
| 65 | |
| 66 | - job-template: |
| 67 | name: '{project-name}-{stream}-{subproject}-docker-verify' |
| 68 | project-type: freestyle |
| 69 | node: 'ubuntu1604-docker-8c-8g' |
| 70 | docker-image-name: '' |
| 71 | |
| 72 | properties: |
| 73 | - infra-properties: |
| 74 | build-days-to-keep: '{build-days-to-keep}' |
| 75 | |
| 76 | parameters: |
| 77 | - infra-parameters: |
| 78 | project: '{project}' |
| 79 | branch: '{branch}' |
| 80 | refspec: 'refs/heads/{branch}' |
| 81 | artifacts: '{archive-artifacts}' |
| 82 | - maven-exec: |
| 83 | maven-version: '{maven-version}' |
| 84 | - docker-image-name: |
| 85 | docker-image-name: '{docker-image-name}' |
| 86 | |
| 87 | scm: |
| 88 | - gerrit-trigger-scm: |
Gary Wu | 325a275 | 2018-05-16 08:47:52 -0700 | [diff] [blame] | 89 | refspec: '$GERRIT_REFSPEC' |
| 90 | choosing-strategy: 'gerrit' |
Gary Wu | c652d4a | 2017-09-22 13:33:42 -0700 | [diff] [blame] | 91 | submodule-recursive: '{submodule-recursive}' |
| 92 | |
| 93 | wrappers: |
| 94 | - infra-wrappers: |
| 95 | build-timeout: '{build-timeout}' |
| 96 | |
| 97 | triggers: |
| 98 | - gerrit-trigger-patch-submitted: |
| 99 | server: '{server-name}' |
| 100 | project: '{project}' |
| 101 | branch: '{branch}' |
| 102 | files: '{pattern}' |
| 103 | |
| 104 | builders: |
| 105 | |
| 106 | - provide-maven-settings: |
| 107 | global-settings-file: 'global-settings' |
| 108 | settings-file: '{mvn-settings}' |
| 109 | |
| 110 | - docker-login |
| 111 | |
| 112 | - maven-target: |
| 113 | maven-version: '{maven-version}' |
| 114 | pom: '{pom}' |
| 115 | goals: 'clean package docker:build' |
| 116 | settings: '{mvn-settings}' |
| 117 | settings-type: cfp |
| 118 | global-settings: 'global-settings' |
| 119 | global-settings-type: cfp |
| 120 | properties: |
| 121 | - docker.pull.registry=nexus3.onap.org:10001 |
| 122 | - docker.push.registry=nexus3.onap.org:10003 |
| 123 | |
| 124 | publishers: |
| 125 | - infra-shiplogs: |
| 126 | maven-version: '{maven-version}' |
| 127 | |