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