.gitlab-ci.yml 546 Bytes
Newer Older
Cypres TAC's avatar
Cypres TAC committed
1
image: maven:3.6-jdk-11
Merisier Tac's avatar
Merisier Tac committed
2 3 4 5 6 7 8

stages:
  - build
  - deploy

build_template:
  stage: build
Merisier Tac's avatar
Merisier Tac committed
9 10
  tags:
    - ci
Merisier Tac's avatar
Merisier Tac committed
11 12 13 14 15 16 17 18 19
  script:
    - cd java
    - mvn package
  artifacts:
    paths:
      - java/target/*.jar

deploy_template:
  stage: deploy
Merisier Tac's avatar
Merisier Tac committed
20 21
  tags:
    - ci
Merisier Tac's avatar
Merisier Tac committed
22 23 24 25 26 27
  script:
    - cd java
    - mvn $MAVEN_CLI_OPTS -DskipTests=true  -DnexusReleasesUrl=$CI_SERVER_URL/api/v4/projects/$CI_PROJECT_ID/packages/maven -DnexusSnapshotsUrl=$CI_SERVER_URL/api/v4/projects/$CI_PROJECT_ID/packages/maven -s ../.gitlab-ci/ci_settings.xml deploy
  only:
    - master
    - tags