Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cicdhtj
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xujian
cicdhtj
Commits
51747109
Commit
51747109
authored
Nov 27, 2024
by
suhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打包
parent
ba8bfab1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
Jenkinsfile
+3
-3
project.yaml
+3
-3
No files found.
Jenkinsfile
View file @
51747109
...
...
@@ -114,7 +114,7 @@ pipeline {
script
{
for
(
repo
in
repos
)
{
dir
(
repo
.
dir
)
{
if
(
repo
.
isUpdate
&&
repo
.
type
==
'mvn'
)
sh
"mvn -Dmaven.test.failure.ignore=true -s /var/lib/jenkins/settings-itimQR.xml package install"
if
(
repo
.
isUpdate
&&
repo
.
type
==
'mvn'
)
sh
"mvn -Dmaven.test.failure.ignore=true -s /var/lib/jenkins/settings-itimQR.xml
clean
package install"
else
if
(
repo
.
isUpdate
&&
repo
.
type
==
'node'
)
sh
"npm install --registry=https://registry.npmmirror.com && npm run build:prod-htj"
else
echo
"xxx"
}
...
...
@@ -128,7 +128,7 @@ pipeline {
sh
"export DOCKER_HOST=192.168.31.250"
for
(
module
in
modules
)
{
if
(
module
.
isUpdate
&&
module
.
isEncryption
){
sh
"cd ${module.dir}/${module.path} && mvn -Dmaven.test.failure.ignore=true -s /var/lib/jenkins/settings-itimQR.xml 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
"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"
...
...
@@ -137,7 +137,7 @@ pipeline {
}
if
(
module
.
isUpdate
&&
!
module
.
isEncryption
)
{
sh
"cd ${module.dir}/${module.path} && mvn -Dmaven.test.failure.ignore=true -s /var/lib/jenkins/settings-itimQR.xml 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
"docker build -f Docker/noencryption/Dockerfile -t ${push_path}/${module.name}:${module.version} --build-arg FILE_NAME=${module.dir}/${module.path}/target/*.jar ${workspace}"
sh
"echo Qrcode@2022 | docker login https://192.168.31.201 --username admin --password-stdin"
sh
"docker push ${push_path}/${module.name}:${module.version}"
...
...
project.yaml
View file @
51747109
...
...
@@ -105,8 +105,8 @@ htj:
-
name
:
factory-tobacco-qrcode-modules-db-version-control
path
:
factory-tobacco-qrcode-modules-db-version-control
isEncryption
:
false
version
:
v24.11.2
6-2.03.003-1
-cs
isUpdate
:
fals
e
version
:
v24.11.2
7-2.03.003-2
-cs
isUpdate
:
tru
e
-
name
:
factory-tobacco-qrcode-modules-iotege-relation
path
:
factory-tobacco-qrcode-modules-iotege-relation
...
...
@@ -141,7 +141,7 @@ htj:
-
name
:
factory-tobacco-qrcode-modules-product-upload
path
:
factory-tobacco-qrcode-modules-product-upload
isEncryption
:
true
version
:
v24.11.2
6-2.03.003-1
-cs
version
:
v24.11.2
7-2.03.003-2
-cs
isUpdate
:
true
-
name
:
factory-tobacco-qrcode-modules-wip-relation
...
...
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