Gary Wu | 213a835 | 2017-06-16 13:44:28 -0700 | [diff] [blame^] | 1 | - builder: |
| 2 | name: docker-login |
| 3 | builders: |
| 4 | - shell: !include-raw: include-docker-login.sh |
| 5 | |
| 6 | - job-template: |
| 7 | name: 'java-{project}' |
| 8 | project-type: freestyle |
| 9 | scm: |
| 10 | - git: |
| 11 | url: 'http://gerrit.onap.org/r/{repo}' |
| 12 | branches: |
| 13 | - '*/master' |
| 14 | wipe-workspace: false |
| 15 | skip-tag: true |
| 16 | timeout: 30 |
| 17 | builders: |
| 18 | - maven-target: |
| 19 | goals: '-B clean install' |
| 20 | pom: '{pom}' |
| 21 | properties: |
| 22 | - skipTests=true |
| 23 | |
| 24 | - job-template: |
| 25 | id: docker-with-pom |
| 26 | name: 'docker-{project}' |
| 27 | project-type: freestyle |
| 28 | pom: 'pom.xml' |
| 29 | mvn-options: '' |
| 30 | shell-cmd: '' |
| 31 | scm: |
| 32 | - git: |
| 33 | url: 'http://gerrit.onap.org/r/{repo}' |
| 34 | branches: |
| 35 | - '*/master' |
| 36 | wipe-workspace: false |
| 37 | skip-tag: true |
| 38 | timeout: 30 |
| 39 | properties: |
| 40 | - inject: |
| 41 | properties-content: | |
| 42 | GIT_NO_PROJECT=http://gerrit.onap.org/r |
| 43 | builders: |
| 44 | - docker-login |
| 45 | - maven-target: |
| 46 | goals: '-B clean package {mvn-options}' |
| 47 | pom: '{pom}' |
| 48 | properties: |
| 49 | - skipTests=true |
| 50 | - docker.pull.registry=nexus3.onap.org:10001 |
| 51 | - docker.push.registry=nexus3.onap.org:10003 |
| 52 | - shell: "{shell-cmd}" |
| 53 | |
| 54 | - job-template: |
| 55 | id: docker-without-pom |
| 56 | name: 'docker-{project}' |
| 57 | project-type: freestyle |
| 58 | shell-cmd: '' |
| 59 | scm: |
| 60 | - git: |
| 61 | url: 'http://gerrit.onap.org/r/{repo}' |
| 62 | branches: |
| 63 | - '*/master' |
| 64 | wipe-workspace: false |
| 65 | skip-tag: true |
| 66 | timeout: 30 |
| 67 | properties: |
| 68 | - inject: |
| 69 | properties-content: | |
| 70 | GIT_NO_PROJECT=http://gerrit.onap.org/r |
| 71 | GLOBAL_SETTINGS_FILE=/var/lib/jenkins/.m2/settings.xml |
| 72 | SETTINGS_FILE=/var/lib/jenkins/.m2/settings.xml |
| 73 | MVN=mvn |
| 74 | builders: |
| 75 | - docker-login |
| 76 | - shell: "{shell-cmd}" |