bitbucket-pipelines.yml 891 B

1234567891011121314151617181920212223242526272829303132
  1. image: openjdk:14-alpine
  2. pipelines:
  3. branches:
  4. develop:
  5. - step:
  6. caches:
  7. - maven
  8. script:
  9. - apk update
  10. - apk add git
  11. - git clone --depth=1 https://bitbucket.org/l2jserver/l2j-server-game.git
  12. - cd l2j-server-game
  13. - /bin/sh mvnw install -DskipTests
  14. - cd ..
  15. - step:
  16. caches:
  17. - maven
  18. script:
  19. - /bin/sh mvnw install
  20. artifacts:
  21. - target/*.zip
  22. - step:
  23. deployment: Production
  24. script:
  25. - pipe: atlassian/ftp-deploy:0.2.3
  26. variables:
  27. USER: $FTP_USER
  28. PASSWORD: $FTP_PASSWORD
  29. SERVER: $FTP_HOST
  30. REMOTE_PATH: $FTP_REMOTE_PATH
  31. LOCAL_PATH: 'target/'