Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Helmholtz Cloud Portal
Webapp
Commits
9f056381
Commit
9f056381
authored
Jul 08, 2021
by
Thomas Beermann
Browse files
Fix pipeline
parent
e0f8695b
Pipeline
#85395
passed with stages
in 3 minutes and 44 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
9f056381
...
@@ -9,7 +9,7 @@ variables:
...
@@ -9,7 +9,7 @@ variables:
MAVEN_CLI_OPTS
:
"
-s
.m2/ci_settings.xml
--batch-mode"
MAVEN_CLI_OPTS
:
"
-s
.m2/ci_settings.xml
--batch-mode"
MAVEN_OPTS
:
"
-Dmaven.repo.local=.m2/repository"
MAVEN_OPTS
:
"
-Dmaven.repo.local=.m2/repository"
WEBAPP_PROJECT_VERSION
:
"
0.0.2-SNAPSHOT"
WEBAPP_PROJECT_VERSION
:
"
0.0.2-SNAPSHOT"
WEBAPP_BRANCH
:
"
"
WEBAPP_
PROJECT_
BRANCH
:
"
"
cache
:
cache
:
key
:
"
$CI_COMMIT_REF_NAME"
key
:
"
$CI_COMMIT_REF_NAME"
...
...
.gitlab/ci/ci.yml
View file @
9f056381
...
@@ -37,11 +37,16 @@ deploy:
...
@@ -37,11 +37,16 @@ deploy:
script
:
script
:
-
|
-
|
if [[ -n $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME ]]; then
if [[ -n $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME ]]; then
WEBAPP_BRANCH=".$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME"
WEBAPP_PROJECT_BRANCH=".$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME"
echo "WEBAPP_PROJECT_BRANCH=$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME" >> build.env
elif [[ -n "$CI_COMMIT_TAG" ]]; then
elif [[ -n "$CI_COMMIT_TAG" ]]; then
WEBAPP_PROJECT_VERSION=$CI_COMMIT_TAG
WEBAPP_PROJECT_VERSION=$CI_COMMIT_TAG
fi
fi
echo "WEBAPP_PROJECT_VERSION=$WEBAPP_PROJECT_VERSION" >> build.env
-
mvn $MAVEN_CLI_OPTS deploy
-
mvn $MAVEN_CLI_OPTS deploy
artifacts
:
reports
:
dotenv
:
build.env
trigger
:
trigger
:
only
:
only
:
...
@@ -50,6 +55,6 @@ trigger:
...
@@ -50,6 +55,6 @@ trigger:
-
tags
-
tags
variables
:
variables
:
WEBAPP_VERSION
:
$WEBAPP_PROJECT_VERSION
WEBAPP_VERSION
:
$WEBAPP_PROJECT_VERSION
WEBAPP_BRANCH
:
$WEBAPP_BRANCH
WEBAPP_BRANCH
:
$WEBAPP_
PROJECT_
BRANCH
stage
:
trigger_marketplace_server
stage
:
trigger_marketplace_server
trigger
:
hifis-technical-platform/helmholtz-marketplace-server
trigger
:
hifis-technical-platform/helmholtz-marketplace-server
pom.xml
View file @
9f056381
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
de.helmholtz.marketplace
</groupId>
<groupId>
de.helmholtz.marketplace
</groupId>
<artifactId>
helmholtz-marketplace-webapp${env.WEBAPP_BRANCH}
</artifactId>
<artifactId>
helmholtz-marketplace-webapp${env.WEBAPP_
PROJECT_
BRANCH}
</artifactId>
<version>
${env.WEBAPP_PROJECT_VERSION}
</version>
<version>
${env.WEBAPP_PROJECT_VERSION}
</version>
<packaging>
pom
</packaging>
<packaging>
pom
</packaging>
<inceptionYear>
2020
</inceptionYear>
<inceptionYear>
2020
</inceptionYear>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment