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

chore: Set war file as artifact from build stage, skip building in deploy stage

parent d1775e0f
Branches
Tags
1 merge request!7Gnuaffero
Pipeline #2494 passed
......@@ -41,6 +41,9 @@ build:
- "./mvnw $MAVEN_POM_WITH_MODELS $MAVEN_CLI_OPTS $MAVEN_OPTS package -DskipTests"
tags:
- vips-java
artifacts:
paths:
- target/*.war
test:
stage: test
......@@ -56,7 +59,6 @@ deploy-to-staging:
- echo "$SSH_PRIVATE_KEY" >> ~/.ssh/id_dsa
- chmod 600 ~/.ssh/id_dsa
- 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 | xargs basename)
- if [ -z "$WAR_FILE" ]; then echo "No war file found in target directory"; exit 1; fi
- echo "Create temporary directory on the server"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment