Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
web-ui
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
WEBGDE-Components
web-ui
Commits
3bf28a53
Commit
3bf28a53
authored
Jul 19, 2024
by
Owen Ryan Ang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated version
parent
00f2ab7d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
1 deletion
+58
-1
.gitlab-ci.yml
.gitlab-ci.yml
+57
-0
pom.xml
pom.xml
+1
-1
No files found.
.gitlab-ci.yml
0 → 100644
View file @
3bf28a53
variables
:
MAVEN_OPTS
:
"
-Dmaven.repo.local=.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"
AWS_ACCESS_KEY_ID
:
"
AKIAYBHQJ562LJ54LYV2"
AWS_SECRET_ACCESS_KEY
:
"
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"
S3_BUCKET
:
"
spd-gitlab-repo"
#change these variables per project
PROJECT
:
"
MobileGde"
#change to snapshot or release
TYPE
:
"
snapshot"
#cache:
# paths:
# - .m2/repository
stages
:
# - test
# - build
-
package
-
cleanup
#test:
# stage: test
# script:
# - mvn $MAVEN_CLI_OPTS test
# only:
# - master
#build:
# stage: build
# script:
# - mvn $MAVEN_CLI_OPTS compile
# only:
# - master
package
:
stage
:
package
image
:
name
:
banst/awscli
entrypoint
:
[
"
"
]
script
:
-
VERSION=$(xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' pom.xml)
-
mvn $MAVEN_CLI_OPTS package
-
zip -r "$CI_PROJECT_DIR"/"$PROJECT"-"$VERSION"-$(date +%Y%m%d-%H%M%S).zip $CI_PROJECT_DIR/target
-
aws configure set region us-east-1
-
aws s3 cp $CI_PROJECT_DIR/*.zip s3://$S3_BUCKET/$TYPE/$PROJECT/
only
:
-
tags
cleanup_job
:
stage
:
cleanup
script
:
-
rm -rf $CI_PROJECT_DIR/*
when
:
always
only
:
-
tags
\ No newline at end of file
pom.xml
View file @
3bf28a53
...
...
@@ -4,7 +4,7 @@
<modelVersion>
4.0.0
</modelVersion>
<groupId>
MobileGde
</groupId>
<artifactId>
MobileGde
</artifactId>
<version>
1.2.
0
-SNAPSHOT
</version>
<version>
1.2.
1
-SNAPSHOT
</version>
<packaging>
war
</packaging>
<dependencies>
<dependency>
...
...
Write
Preview
Markdown
is supported
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