Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 9c4bed346019abec2c2045316d6acd177869b70d (plain) (blame)
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
image: registry.forge.orange-labs.fr/org.eclipse.om2m/om2m/com.orange.om2m.docker.builder:0.0.6

variables:
  MAVEN_OPTS: "-Xms4000m -Xmx6000m"

  
cache:
  paths:
    - .m2

stages:
  - build
  - test
  - deploy


build:
  stage: build
  script: 
    - "nohup dockerd&"
    - "mvn clean install -Dmaven.repo.local=./.m2/repository -B -s /root/.m2/settings.xml"
    - "mvn sonar:sonar -Dsonar.host.url=http://10.192.37.63/sonar"
  tags:
    - docker-privileged
    - rsc
    - shared
    
deploy:
  stage: deploy
  script: 
    - "nohup dockerd&"
    - "mvn deploy -B -Dmaven.test.skip=true -Dmaven.repo.local=./.m2/repository -s /root/.m2/settings.xml -DaltDeploymentRepository=inhouse.snapshot::default::http://maven2.rd.francetelecom.fr/proxy/repository/inhouse.snapshot -Drepo=${CI_COMMIT_REF_NAME} -Pdocker"
    - "rm -fr .m2"
  tags:
    - docker-privileged
    - rsc
    - shared

Back to the top