Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
traffic-signal-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
signal
traffic-signal-platform
Commits
b599914d
Commit
b599914d
authored
Apr 27, 2023
by
hanbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 优化Maven生命周期
parent
f7b4d1cc
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
1 deletion
+35
-1
Jenkinsfile
Jenkinsfile
+1
-1
pom.xml
signal-control-service/pom.xml
+10
-0
pom.xml
signal-datacenter-service/pom.xml
+8
-0
pom.xml
signal-optimize-service/pom.xml
+8
-0
pom.xml
signal-utc-service/pom.xml
+8
-0
No files found.
Jenkinsfile
View file @
b599914d
...
...
@@ -19,7 +19,7 @@ pipeline {
stage
(
'编译构建'
)
{
steps
{
sh
'''
mvn clean install -Dmaven.test.skip=true
com.google.cloud.tools:jib-maven-plugin:build
-DsendCredentialsOverHttp=true
mvn clean install -Dmaven.test.skip=true -DsendCredentialsOverHttp=true
'''
}
}
...
...
signal-control-service/pom.xml
View file @
b599914d
...
...
@@ -199,6 +199,16 @@
<groupId>
com.google.cloud.tools
</groupId>
<artifactId>
jib-maven-plugin
</artifactId>
<version>
2.5.2
</version>
<!-- 将jib与mvn构建的生命周期绑定 -->
<executions>
<execution>
<id>
build-image
</id>
<phase>
install
</phase>
<goals>
<goal>
build
</goal>
</goals>
</execution>
</executions>
<configuration>
<!--from节点用来设置镜像的基础镜像,相当于Docerkfile中的FROM关键字-->
<from>
...
...
signal-datacenter-service/pom.xml
View file @
b599914d
...
...
@@ -283,6 +283,14 @@
<!--可以进行HTTP-->
<allowInsecureRegistries>
true
</allowInsecureRegistries>
</configuration>
<executions>
<execution>
<phase>
install
</phase>
<goals>
<goal>
build
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
...
...
signal-optimize-service/pom.xml
View file @
b599914d
...
...
@@ -236,6 +236,14 @@
<!--可以进行HTTP-->
<allowInsecureRegistries>
true
</allowInsecureRegistries>
</configuration>
<executions>
<execution>
<phase>
install
</phase>
<goals>
<goal>
build
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
...
...
signal-utc-service/pom.xml
View file @
b599914d
...
...
@@ -241,6 +241,14 @@
<!--可以进行HTTP-->
<allowInsecureRegistries>
true
</allowInsecureRegistries>
</configuration>
<executions>
<execution>
<phase>
install
</phase>
<goals>
<goal>
build
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
...
...
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