Commit 1f154fcd authored by Stefan Funk's avatar Stefan Funk 🐧
Browse files

mc

parent 6bf5bbf8
......@@ -8,7 +8,7 @@ variables:
# As of Maven 3.3.0 instead of this you may define these options in `.mvn/maven.config` so the same config is used
# when running from the command line.
#MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
MAVEN_CLI_OPTS: "--errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version"
# Nexus Deployment settings, please use env vars in Settings -> CI/CD -> Variables.
MAVEN_SETTINGS_PATH: ".m2/settings.xml"
MAVEN_DEPLOY_OPTS: "--settings=$MAVEN_SETTINGS_PATH"
......@@ -16,8 +16,9 @@ variables:
VARIABLES_FILE: ./variables.txt
stages:
- build
- deploy
- build_version
- deploy_java
# - deploy_deb
# Cache downloaded dependencies and plugins between builds.
# To keep cache across branches add 'key: "$CI_JOB_NAME"'
......@@ -30,7 +31,7 @@ cache:
get_version_dev:
only:
- develop
stage: build
stage: build_version
script:
- 'PVERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:3.1.1:evaluate -Dexpression=project.version -q -DforceStdout)'
- echo "export PVERSION=$PVERSION" > $VARIABLES_FILE
......@@ -44,7 +45,7 @@ get_version_dev:
build_and_deploy_dev:
only:
- develop
stage: deploy
stage: deploy_java
script:
- echo "Building and deploying project with $MVN_DEPLOY_OPTS"
- cat .m2/settings.xml
......@@ -59,7 +60,7 @@ build_and_deploy_dev:
# only:
# - develop
# image: alpine:3.14
# stage: deploy
# stage: deploy_deb
# variables:
# PNAME: 'tgcrud-webapp'
# PPATH: '${PNAME}/target'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment