Skip to content
Snippets Groups Projects
Commit c7c964ca authored by Samuel Eickelberg's avatar Samuel Eickelberg
Browse files

OP#18070 Trying to resolve the proxy issue for MongoDB download for testing... see if it works.

parent 84b26f42
Branches
No related tags found
No related merge requests found
# 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.20.1-debug name: gcr.io/kaniko-project/executor:v1.23.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
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"
...@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment