Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GEMIMEG Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
D-PTB
DCC
GEMIMEG-Tool 2.0
GEMIMEG Backend
Commits
c7c964ca
Commit
c7c964ca
authored
4 months ago
by
Samuel Eickelberg
Browse files
Options
Downloads
Patches
Plain Diff
OP#18070 Trying to resolve the proxy issue for MongoDB download for testing... see if it works.
parent
84b26f42
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+3
-35
3 additions, 35 deletions
.gitlab-ci.yml
.mavenrc
+1
-1
1 addition, 1 deletion
.mavenrc
settings.xml
+1
-1
1 addition, 1 deletion
settings.xml
with
5 additions
and
37 deletions
.gitlab-ci.yml
+
3
−
35
View file @
c7c964ca
# You can override the included template(s) by including variable overrides
# SAST customization: https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
# Secret Detection customization: https://docs.gitlab.com/ee/user/application_security/secret_detection/pipeline/#customization
# Dependency Scanning customization: https://docs.gitlab.com/ee/user/application_security/dependency_scanning/#customizing-the-dependency-scanning-settings
# Container Scanning customization: https://docs.gitlab.com/ee/user/application_security/container_scanning/#customizing-the-container-scanning-settings
# Note that environment variables can be set in several places
# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
.set_environmentvariables
:
&set_environmentvariables
.set_environmentvariables
:
&set_environmentvariables
-
export HTTP_PROXY="http://194.94.94.194:8080/"
-
export HTTP_PROXY="http://194.94.94.194:8080/"
-
export HTTPS_PROXY="http://194.94.94.194:8080/"
-
export HTTPS_PROXY="http://194.94.94.194:8080/"
...
@@ -16,33 +8,17 @@
...
@@ -16,33 +8,17 @@
variables
:
variables
:
IMAGE_TAG
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
IMAGE_TAG
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
cache
:
cache
:
key
:
maven_cache
key
:
maven_cache
paths
:
paths
:
-
.m2/repository
-
.m2/repository
stages
:
stages
:
-
test
-
test
-
build
-
build
-
package
-
package
-
deploy
-
deploy
-
release
-
release
#- review
#- dast
#- staging
#- canary
#- production
#- incremental rollout 10%
#- incremental rollout 25%
#- incremental rollout 50%
#- incremental rollout 100%
#- performance
#- cleanup
maven-test
:
maven-test
:
stage
:
test
stage
:
test
...
@@ -54,7 +30,7 @@ maven-test:
...
@@ -54,7 +30,7 @@ maven-test:
-
cp .mavenrc /root/.mavenrc
-
cp .mavenrc /root/.mavenrc
-
cp settings.xml ${MAVEN_HOME}/conf/settings.xml
-
cp settings.xml ${MAVEN_HOME}/conf/settings.xml
script
:
script
:
-
"
mvn
clean
-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository
org.jacoco:jacoco-maven-plugin:prepare-agent
test
jacoco:report"
-
"
mvn
clean
-Dhttps.proxyHost=webproxy.berlin.ptb.de
-Dhttps.proxyPort=8080
-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository
org.jacoco:jacoco-maven-plugin:prepare-agent
test
jacoco:report"
-
cat gemimeg-backend/target/site/jacoco/index.html
-
cat gemimeg-backend/target/site/jacoco/index.html
coverage
:
/Total.*?([0-9]{1,3})%/
coverage
:
/Total.*?([0-9]{1,3})%/
artifacts
:
artifacts
:
...
@@ -84,7 +60,7 @@ maven-package:
...
@@ -84,7 +60,7 @@ maven-package:
-
cp .mavenrc /root/.mavenrc
-
cp .mavenrc /root/.mavenrc
-
cp settings.xml ${MAVEN_HOME}/conf/settings.xml
-
cp settings.xml ${MAVEN_HOME}/conf/settings.xml
script
:
script
:
-
"
mvn
-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository
-DskipTests=true
package"
-
"
mvn
-Dhttps.proxyHost=webproxy.berlin.ptb.de
-Dhttps.proxyPort=8080
-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository
-DskipTests=true
package"
artifacts
:
artifacts
:
paths
:
paths
:
-
gemimeg-backend/target/gemimeg-backend.jar
-
gemimeg-backend/target/gemimeg-backend.jar
...
@@ -97,7 +73,7 @@ build-image:
...
@@ -97,7 +73,7 @@ build-image:
tags
:
tags
:
-
oplayer-berlin
-
oplayer-berlin
image
:
image
:
name
:
gcr.io/kaniko-project/executor:v1.2
0.1
-debug
name
:
gcr.io/kaniko-project/executor:v1.2
3.2
-debug
entrypoint
:
[
"
"
]
entrypoint
:
[
"
"
]
before_script
:
before_script
:
-
*set_environmentvariables
-
*set_environmentvariables
...
@@ -108,7 +84,6 @@ build-image:
...
@@ -108,7 +84,6 @@ build-image:
--destination "${IMAGE_TAG}"
--destination "${IMAGE_TAG}"
--verbosity=debug
--verbosity=debug
deploy-production
:
deploy-production
:
variables
:
variables
:
DEPLOYMENT_ENVIRONMENT
:
gmg
DEPLOYMENT_ENVIRONMENT
:
gmg
...
@@ -143,8 +118,6 @@ deploy-production:
...
@@ -143,8 +118,6 @@ deploy-production:
# docker login and restart services
# docker login and restart services
-
ssh duser@a94083.berlin.ptb.de "cd /home/duser/oplayer/gmg/backend;docker-compose -p gmg -f docker-compose.yml up -d";
-
ssh duser@a94083.berlin.ptb.de "cd /home/duser/oplayer/gmg/backend;docker-compose -p gmg -f docker-compose.yml up -d";
release-job
:
release-job
:
stage
:
release
stage
:
release
image
:
registry.gitlab.com/gitlab-org/release-cli:latest
image
:
registry.gitlab.com/gitlab-org/release-cli:latest
...
@@ -155,8 +128,3 @@ release-job:
...
@@ -155,8 +128,3 @@ release-job:
release
:
release
:
tag_name
:
'
$CI_COMMIT_TAG'
tag_name
:
'
$CI_COMMIT_TAG'
description
:
'
$CI_COMMIT_TAG'
description
:
'
$CI_COMMIT_TAG'
#sast:
# stage: test
#include:
#- template: Auto-DevOps.gitlab-ci.yml
This diff is collapsed.
Click to expand it.
.mavenrc
+
1
−
1
View file @
c7c964ca
MAVEN_OPTS="-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true"
MAVEN_OPTS="
-Dhttps.proxyHost=webproxy.berlin.ptb.de -Dhttps.proxyPort=8080
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true"
This diff is collapsed.
Click to expand it.
settings.xml
+
1
−
1
View file @
c7c964ca
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<protocol>
http
</protocol>
<protocol>
http
</protocol>
<host>
webproxy.berlin.ptb.de
</host>
<host>
webproxy.berlin.ptb.de
</host>
<port>
8080
</port>
<port>
8080
</port>
<nonProxyHosts>
localhost|*.bs.ptb.de|*.berlin.ptb.de|*.
tc.
ptb.de|*.ptb.de
</nonProxyHosts>
<nonProxyHosts>
localhost|*.bs.ptb.de|*.berlin.ptb.de|*.ptb.de|*.ptb.de
</nonProxyHosts>
</proxy>
</proxy>
</proxies>
</proxies>
<servers>
<servers>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment