.gitlab-ci.yml 356 B

12345678910111213141516171819202122
  1. variables:
  2. MAVEN_CLI_OPTS: "--batch-mode"
  3. build:
  4. stage: build
  5. script:
  6. - mvn $MAVEN_CLI_OPTS compile
  7. test:
  8. stage: test
  9. script:
  10. - mvn $MAVEN_CLI_OPTS test
  11. deploy:
  12. stage: deploy
  13. script:
  14. - rm -r /serv/src/*
  15. - cp -r ./src/* /serv/src
  16. - cp ./pom.xml /serv/pom.xml
  17. - mvn $MAVEN_CLI_OPTS -f /serv package
  18. only:
  19. - serv