This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 55ab7646 authored by Eduard Frankford's avatar Eduard Frankford
Browse files

run whole pipeline

parent 84a55bb0
Branches
2 merge requests!188Merging Peer Reviewing et. al to Master,!164211 peer reviewing functionality
...@@ -5,10 +5,10 @@ cache: ...@@ -5,10 +5,10 @@ cache:
paths: paths:
- .maven/ - .maven/
stages: stages:
# - lint - lint
# - build - build
# - test - test
# - analyze - analyze
# - package # - package
- release - release
- deploy - deploy
...@@ -17,96 +17,96 @@ before_script: ...@@ -17,96 +17,96 @@ before_script:
- export NG_CLI_ANALYTICS="false" - export NG_CLI_ANALYTICS="false"
- export MAVEN_USER_HOME=`pwd`/.maven - export MAVEN_USER_HOME=`pwd`/.maven
# pmdCheckstylePrettierLint: pmdCheckstylePrettierLint:
# stage: lint stage: lint
# cache: {} cache: {}
# when: always when: always
# before_script: before_script:
# - 'export VERSION="6.40.0"' - 'export VERSION="6.40.0"'
# - 'wget "https://github.com/pmd/pmd/releases/download/pmd_releases%2F$VERSION/pmd-bin-$VERSION.zip"' - 'wget "https://github.com/pmd/pmd/releases/download/pmd_releases%2F$VERSION/pmd-bin-$VERSION.zip"'
# - 'jar -xf "pmd-bin-$VERSION.zip"' - 'jar -xf "pmd-bin-$VERSION.zip"'
# - 'chmod u+x "pmd-bin-$VERSION/bin/run.sh"' - 'chmod u+x "pmd-bin-$VERSION/bin/run.sh"'
# script: script:
# - SUCCESS=true - SUCCESS=true
# - echo "Running PMD" - echo "Running PMD"
# - '"pmd-bin-$VERSION/bin/run.sh" pmd -d src/main/java -f textcolor -R pmd_rules.xml 2>&1 | tee pmd.log || SUCCESS=false' - '"pmd-bin-$VERSION/bin/run.sh" pmd -d src/main/java -f textcolor -R pmd_rules.xml 2>&1 | tee pmd.log || SUCCESS=false'
# - echo "Running checkstyle" - echo "Running checkstyle"
# - ./mvnw -ntp checkstyle:check -Dmaven.repo.local=$MAVEN_USER_HOME || SUCCESS=false - ./mvnw -ntp checkstyle:check -Dmaven.repo.local=$MAVEN_USER_HOME || SUCCESS=false
# - echo "Running prettier" - echo "Running prettier"
# - npm install - npm install
# - npm run prettier:check - npm run prettier:check
# - echo "Running eslint" - echo "Running eslint"
# - 'npm run lint | tee lint.log' - 'npm run lint | tee lint.log'
# - "! grep -qE '✖ [0-9]+ problem' lint.log || SUCCESS=false" - "! grep -qE '✖ [0-9]+ problem' lint.log || SUCCESS=false"
# - $SUCCESS - $SUCCESS
# needs: [] needs: []
# artifacts: artifacts:
# when: on_failure when: on_failure
# expire_in: 30 days expire_in: 30 days
# paths: paths:
# - pmd.log - pmd.log
# maven-compile: maven-compile:
# stage: build stage: build
# script: script:
# - ./mvnw -ntp compile -P-webapp -Dmaven.repo.local=$MAVEN_USER_HOME - ./mvnw -ntp compile -P-webapp -Dmaven.repo.local=$MAVEN_USER_HOME
# artifacts: artifacts:
# paths: paths:
# - target/classes/ - target/classes/
# - target/generated-sources/ - target/generated-sources/
# expire_in: 10 days expire_in: 10 days
# needs: [] needs: []
# maven-test: maven-test:
# # DinD service is required for Testcontainers # DinD service is required for Testcontainers
# services: services:
# - docker:20-dind - docker:20-dind
# variables: variables:
# # Instruct Testcontainers to use the daemon of DinD. # Instruct Testcontainers to use the daemon of DinD.
# DOCKER_HOST: 'tcp://docker:2375' DOCKER_HOST: 'tcp://docker:2375'
# DOCKER_TLS_CERTDIR: '' DOCKER_TLS_CERTDIR: ''
# stage: test stage: test
# script: script:
# - ./mvnw -ntp verify -P-webapp -Dmaven.repo.local=$MAVEN_USER_HOME -Dspring.profiles.active=testcontainers - ./mvnw -ntp verify -P-webapp -Dmaven.repo.local=$MAVEN_USER_HOME -Dspring.profiles.active=testcontainers
# allow_failure: true allow_failure: true
# artifacts: artifacts:
# reports: reports:
# junit: junit:
# - target/surefire-reports/TEST-*.xml - target/surefire-reports/TEST-*.xml
# - target/failsafe-reports/TEST-*.xml - target/failsafe-reports/TEST-*.xml
# paths: paths:
# - target/surefire-reports - target/surefire-reports
# - target/failsafe-reports - target/failsafe-reports
# - target/site - target/site
# when: always when: always
# expire_in: 15 days expire_in: 15 days
# needs: [] needs: []
# frontend-test: frontend-test:
# stage: test stage: test
# cache: {} cache: {}
# script: script:
# - npm install - npm install
# - npm test - npm test
# artifacts: artifacts:
# reports: reports:
# junit: target/test-results/TESTS-results-jest.xml junit: target/test-results/TESTS-results-jest.xml
# paths: paths:
# - target/test-results - target/test-results
# - target/jacoco - target/jacoco
# when: always when: always
# expire_in: 15 days expire_in: 15 days
# needs: [] needs: []
# sonar-analyze: sonar-analyze:
# stage: analyze stage: analyze
# dependencies: dependencies:
# - maven-test - maven-test
# - frontend-test - frontend-test
# script: script:
# - ./mvnw -ntp org.jacoco:jacoco-maven-plugin:prepare-agent initialize sonar:sonar -Dsonar.organization=codeAbility -Dsonar.host.url=https://qe-sonarqube.uibk.ac.at/ -Dsonar.login=${SONAR_TOKEN_QE} -Dmaven.repo.local=$MAVEN_USER_HOME - ./mvnw -ntp org.jacoco:jacoco-maven-plugin:prepare-agent initialize sonar:sonar -Dsonar.organization=codeAbility -Dsonar.host.url=https://qe-sonarqube.uibk.ac.at/ -Dsonar.login=${SONAR_TOKEN_QE} -Dmaven.repo.local=$MAVEN_USER_HOME
# # - ./mvnw -ntp org.jacoco:jacoco-maven-plugin:prepare-agent initialize sonar:sonar -Dsonar.organization=codeAbility -Dsonar.host.url=https://server.arctis.at/sonar/ -Dsonar.login=${SONAR_TOKEN} -Dmaven.repo.local=$MAVEN_USER_HOME # - ./mvnw -ntp org.jacoco:jacoco-maven-plugin:prepare-agent initialize sonar:sonar -Dsonar.organization=codeAbility -Dsonar.host.url=https://server.arctis.at/sonar/ -Dsonar.login=${SONAR_TOKEN} -Dmaven.repo.local=$MAVEN_USER_HOME
# allow_failure: true allow_failure: true
# maven-package: # maven-package:
# stage: package # stage: package
...@@ -123,7 +123,6 @@ docker-push: ...@@ -123,7 +123,6 @@ docker-push:
REGISTRY_URL: sharing-codeability.uibk.ac.at:5051 REGISTRY_URL: sharing-codeability.uibk.ac.at:5051
IMAGE_TAG: sharing-codeability.uibk.ac.at:5051/sharing/codeability-sharing-platform IMAGE_TAG: sharing-codeability.uibk.ac.at:5051/sharing/codeability-sharing-platform
script: script:
# - ./mvnw -ntp verify -Pprod -DskipTests -Dmaven.repo.local=$MAVEN_USER_HOME
- ./mvnw package -Pprod verify -DskipTests jib:build -Djib.to.image=$IMAGE_TAG -Djib.to.auth.username=gitlab-ci-token -Djib.to.auth.password=$CI_BUILD_TOKEN -Dmaven.repo.local=$MAVEN_USER_HOME - ./mvnw package -Pprod verify -DskipTests jib:build -Djib.to.image=$IMAGE_TAG -Djib.to.auth.username=gitlab-ci-token -Djib.to.auth.password=$CI_BUILD_TOKEN -Dmaven.repo.local=$MAVEN_USER_HOME
when: always when: always
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
href="https://www.ris.bka.gv.at/GeltendeFassung.wxe?Abfrage=bundesnormen&Gesetzesnummer=10001597" href="https://www.ris.bka.gv.at/GeltendeFassung.wxe?Abfrage=bundesnormen&Gesetzesnummer=10001597"
target="_blank" target="_blank"
rel="external noopener noreferrer" rel="external noopener noreferrer"
>österreichischen Datenschutzgesetz</a >Österreichischen Datenschutzgesetz</a
>. >.
</p> </p>
<p> <p>
......
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