diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d06c8d00fa20ae70848ae47be811b9ab9b61790f..8cc6b02046992c571796af71ebb7e5e556ff0d38 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -55,6 +55,7 @@ deploy-to-staging: - cp "$SSH_KNOWN_HOSTS" ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts #- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config + - './mvnw $MAVEN_POM_WITH_MODELS $MAVEN_CLI_OPTS $MAVEN_OPTS package -DskipTests' - WAR_FILE=$(find target -maxdepth 1 -type f -name "*.war" | sort -n | tail -1) - if [ -z "$WAR_FILE" ]; then echo "No WAR files found in target directory"; exit 1; fi - echo "Deploying $WAR_FILE to the server"