Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cicdhtj
Project
Project
Details
Activity
Releases
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
xujian
cicdhtj
Commits
7b1be30d
Commit
7b1be30d
authored
Apr 30, 2025
by
jwf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微服务打包
parent
37781010
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
Dockerfile
Docker/mysqldump/Dockerfile
+8
-0
Jenkinsfile
Jenkinsfile
+8
-1
project.yaml
project.yaml
+2
-2
No files found.
Docker/mysqldump/Dockerfile
0 → 100644
View file @
7b1be30d
FROM
openjdk:8-jdk-mysqldump
#设置时区
ARG
FILE_NAME="default"
ENV
PARAMS=""
RUN
ln
-sf
/usr/share/zoneinfo/Asia/Shanghai /etc/localtime
&&
echo
'Asia/Shanghai'
>
/etc/timezone
COPY
${FILE_NAME} /app.jar
ENTRYPOINT
["/bin/sh","-c","java -Dfile.encoding=utf8 -Djava.security.egd=file:/dev/.urandom -jar app.jar ${PARAMS}" ]
Jenkinsfile
View file @
7b1be30d
...
@@ -132,7 +132,14 @@ pipeline {
...
@@ -132,7 +132,14 @@ pipeline {
if
(
module
.
isUpdate
&&
module
.
isEncryption
){
if
(
module
.
isUpdate
&&
module
.
isEncryption
){
sh
"cd ${module.dir}/${module.path} && mvn -Dmaven.test.failure.ignore=true -s /var/lib/jenkins/settings-itimQR.xml clean package install"
sh
"cd ${module.dir}/${module.path} && mvn -Dmaven.test.failure.ignore=true -s /var/lib/jenkins/settings-itimQR.xml clean package install"
sh
"cd ${module.dir}/${module.path} && mvn -Dmaven.test.failure.ignore=true -s /var/lib/jenkins/settings-itimQR.xml classfinal:classFinal"
sh
"cd ${module.dir}/${module.path} && mvn -Dmaven.test.failure.ignore=true -s /var/lib/jenkins/settings-itimQR.xml classfinal:classFinal"
sh
"docker build -f Docker/encryption/Dockerfile -t ${push_path}/${module.name}:${module.version} --build-arg FILE_NAME=${module.dir}/${module.path}/target/*-encrypted.jar ${workspace}"
if
(
module
.
name
==
'qrcode-modules-data-sharing'
){
sh
"docker build -f Docker/mysqldump/Dockerfile -t ${push_path}/${module.name}:${module.version} --build-arg FILE_NAME=${module.dir}/${module.path}/target/*-encrypted.jar ${workspace}"
}
else
{
sh
"docker build -f Docker/encryption/Dockerfile -t ${push_path}/${module.name}:${module.version} --build-arg FILE_NAME=${module.dir}/${module.path}/target/*-encrypted.jar ${workspace}"
}
sh
"echo Qrcode@2022 | docker login https://192.168.31.201 --username admin --password-stdin"
sh
"echo Qrcode@2022 | docker login https://192.168.31.201 --username admin --password-stdin"
sh
"docker push ${push_path}/${module.name}:${module.version}"
sh
"docker push ${push_path}/${module.name}:${module.version}"
sh
"docker images -f 'dangling=true' -q | xargs -r docker rmi"
sh
"docker images -f 'dangling=true' -q | xargs -r docker rmi"
...
...
project.yaml
View file @
7b1be30d
...
@@ -57,7 +57,7 @@ core:
...
@@ -57,7 +57,7 @@ core:
-
name
:
qrcode-modules-data-sharing
-
name
:
qrcode-modules-data-sharing
path
:
factory-tobacco-qrcode-modules-data-sharing
path
:
factory-tobacco-qrcode-modules-data-sharing
isEncryption
:
false
isEncryption
:
false
version
:
v25.04.30.
1
version
:
v25.04.30.
2
isUpdate
:
true
isUpdate
:
true
#
#
# - name: factory-tobacco-qrcode-modules-gen
# - name: factory-tobacco-qrcode-modules-gen
...
@@ -164,5 +164,5 @@ web:
...
@@ -164,5 +164,5 @@ web:
url
:
"
http://114.116.202.8:18369/factory-tobacco/factory-tobacco-qrcode-htj-vue.git"
url
:
"
http://114.116.202.8:18369/factory-tobacco/factory-tobacco-qrcode-htj-vue.git"
# isEncryption: false
# isEncryption: false
version
:
v25.04.30.1
version
:
v25.04.30.1
isUpdate
:
tru
e
isUpdate
:
fals
e
#
#
\ No newline at end of file
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