Skip to content
Snippets Groups Projects
bitbucket-pipelines.yml 891 B
image: openjdk:14-alpine

pipelines:
   branches:
      develop:
         - step:
            caches:
             - maven
            script:
             - apk update
             - apk add git
             - git clone --depth=1 https://bitbucket.org/l2jserver/l2j-server-game.git
             - cd l2j-server-game
             - /bin/sh mvnw install -DskipTests
             - cd ..
         - step:
            caches:
             - maven
            script:
             - /bin/sh mvnw install
            artifacts:
             - target/*.zip
         - step:
            deployment: Production
            script:
             - pipe: atlassian/ftp-deploy:0.2.3
               variables:
                 USER: $FTP_USER
                 PASSWORD: $FTP_PASSWORD
                 SERVER: $FTP_HOST
                 REMOTE_PATH: $FTP_REMOTE_PATH
                 LOCAL_PATH: 'target/'