Compare commits

..

18 Commits

4
.gitignore vendored

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

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

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

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

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId> <groupId>com.example</groupId>
@ -9,6 +9,7 @@
<version>1</version> <version>1</version>
<name>demo</name> <name>demo</name>
<packaging>war</packaging> <packaging>war</packaging>
<packaging>war</packaging>
<properties> <properties>
<maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.target>1.8</maven.compiler.target>

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

Loading…
Cancel
Save