Skip to content
Snippets Groups Projects
Commit 64c53b02 authored by Lene Wasskog's avatar Lene Wasskog
Browse files

build: Ensure war file is built before deploy

parent f66381ba
Branches
Tags
1 merge request!7Gnuaffero
Pipeline #2180 failed
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment