Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
idatt2106-2024-07
backend
Commits
da71564b
Commit
da71564b
authored
1 year ago
by
Andreas
Browse files
Options
Downloads
Patches
Plain Diff
test/Update update_html.py and application.yaml
parent
d703f3d3
No related branches found
No related tags found
1 merge request
!5
Updated pipeline to deploy site and test coverage report to Gitlab Pages
Pipeline
#274067
passed
1 year ago
Stage: compile_and_test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+5
-11
5 additions, 11 deletions
.gitlab-ci.yml
src/main/resources/application.yaml
+1
-1
1 addition, 1 deletion
src/main/resources/application.yaml
with
6 additions
and
12 deletions
.gitlab-ci.yml
+
5
−
11
View file @
da71564b
...
...
@@ -2,22 +2,16 @@ image: maven:3.8.5-openjdk-17
variables
:
# This will suppress any download for dependencies and plugins or upload messages which would clutter the console log.
# `showDateTime` will show the passed time in milliseconds. You need to specify `--batch-mode` to make this work.
MAVEN_OPTS
:
"
-Dhttps.protocols=TLSv1.2
-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN
-Dorg.slf4j.simpleLogger.showDateTime=true
-Djava.awt.headless=true"
MAVEN_CLI_OPTS
:
"
--batch-mode
--errors
--fail-at-end
--show-version
-DinstallAtEnd=true
-DdeployAtEnd=true"
SPRING_PROFILES_ACTIVE
:
gitlab-ci
# Configure mysql environment variables (https://hub.docker.com/_/mysql/)
MYSQL_DATABASE
:
$MYSQL_DATABASE
MYSQL_ROOT_PASSWORD
:
$MYSQL_ROOT_PASSWORD
Host
:
mysql
User
:
root
Password
:
root
Database
:
sparesti
services
:
-
mysql:latest
-
name
:
mysql:latest
alias
:
mysql
variables
:
MYSQL_ROOT_PASSWORD
:
"
root"
# TODO Set this in GitLab's CI/CD environment variables for security in production
MYSQL_DATABASE
:
"
sparesti"
stages
:
-
compile_and_test
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/application.yaml
+
1
−
1
View file @
da71564b
...
...
@@ -2,7 +2,7 @@ server.port: 8080
spring
:
datasource
:
url
:
jdbc:mysql://
localhost
:3306/sparesti
url
:
jdbc:mysql://
mysql
:3306/sparesti
username
:
root
password
:
root
jpa
:
...
...
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