Compare commits

..

8 Commits

4
.gitignore vendored

@ -1,8 +1,7 @@
# ---> Java
#
# Compiled class file
fsf
*.class
#.fsl
# Log file
*.log
@ -24,4 +23,3 @@ fsf
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
*.mac

@ -1,6 +1,7 @@
kind: pipeline
type: docker
name: 开发流水线
name: 测试流水线
platform:
os: linux
arch: amd64
@ -47,3 +48,8 @@ steps:
- docker build -t mo-test:1.0 .
- docker run -d -p 8080:8080 --name mo-test mo-test:1.0
- echo ====部署成功======
trigger:
branch:
- develop
event:
- push

@ -1,6 +1,6 @@
#添加docker镜像
FROM tomcat:8.5.83-jdk8-temurin-focal
FROM tomcat
#添加作者信息
MAINTAINER moshenglv@163.com

@ -1,15 +1,15 @@
## 操作步骤11
## 操作步骤
#### 1. 在线修改信息 src/main/java/controller/HelloWorld.java 文件信息内容,如下图:
![](https://forge.educoder.net/api/attachments/1663370?raw=true)
#### 2. 修改成功后,会自动发构建、自动测试、自动部署
![](https://forge.educoder.net/api/attachments/1663375?raw=true)
#### 2. 修改成功后,会自动发构建、自动测试、自动部署
![](https://forge.educoder.net/api/attachments/1663375)
#### 3. 构建成功后,访问如下链接,即可查看效果
http://106.75.236.63:8080/demo/hello
http://117.50.189.36:8080/demo/hello
![](https://forge.educoder.net/api/attachments/1663377?raw=true)
![](https://forge.educoder.net/api/attachments/1663377)

@ -1 +0,0 @@
// hello world java .

@ -10,7 +10,6 @@
<name>demo</name>
<packaging>war</packaging>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>

@ -14,7 +14,7 @@ public class HelloWorld extends HttpServlet {
@Override
public void init() throws ServletException {
message = "Hello world, this message is from servlet! 2022-10-13 14:38";
message = "Hello world1, this message is from servlet! Good Luck. ";
}
@Override

Loading…
Cancel
Save