Compare commits

...

62 Commits

Author SHA1 Message Date
xxq250 45521bbdcd Merge pull request '111' (#14) from dev_local_v1 into master 2023-09-04 16:06:49 +08:00
xxq250 9a5d8d9659 Update 1.txt 2023-09-04 16:06:32 +08:00
xxq250 46a42edbc4 refactor: .devops/PR通知.yml 2023-09-04 16:03:37 +08:00
xxq250 9878f377a6 Merge pull request '234' (#10) from dev_local_v7 into master 2023-09-04 16:00:34 +08:00
xxq250 a38dd73548 Update test.txt 2023-09-01 12:22:54 +08:00
xxq250 6d9af13c02 refactor: .devops/PR通知.yml 2023-09-01 12:21:42 +08:00
xxq250 dee1ad44f9 Update test.txt 2023-09-01 12:21:33 +08:00
xxq250 65d1c1b2f5 Update test.txt 2023-09-01 09:29:25 +08:00
xxq250 33d190af3e Update 1.txt 2023-06-29 16:27:26 +08:00
xxq250 caaeb6a271 Merge pull request '测试devops提交pr' (#4) from xxq2504/java_ci_example:master into master 2023-06-27 17:29:27 +08:00
xxq250 46377c831c Update 1.txt 2023-03-28 09:33:35 +08:00
xxq2504 d7b1a4da56 Add test.txt 2023-03-16 14:46:10 +08:00
xxq250 43b433d20a refactor: .devops/PR通知.yml 2023-03-16 14:41:08 +08:00
xxq250 d027b5f3e3 refactor: .devops/PR通知.yml 2023-03-16 14:40:24 +08:00
xxq250 fc4f1eb426 refactor: .devops/PR通知.yml 2023-03-16 14:38:51 +08:00
xxq250 879f322c01 refactor: .devops/PR通知.yml 2023-03-16 14:33:28 +08:00
xxq250 fbc2440297 refactor: .devops/PR通知.yml 2023-03-16 14:30:53 +08:00
xxq250 1518d159c9 refactor: .devops/PR通知.yml 2023-03-16 10:26:39 +08:00
xxq250 439e50804a feat: .devops/PR通知.yml 2023-03-16 10:15:39 +08:00
xxq250 3d081d36ab refactor: delete .devops/Hello Word.yml 2023-03-16 10:15:38 +08:00
xxq250 45583cfd74 Add 2.txt 2023-02-08 09:24:37 +08:00
xxq250 1dfd66e6e2 feat: .devops/Hello Word.yml
continuous-integration/drone/push Build is passing Details
2022-08-16 16:55:11 +08:00
xxq250 18f37c1874 refactor: delete .devops/未命名项目.yml
continuous-integration/drone/push Build is passing Details
2022-08-16 16:55:10 +08:00
xxq250 5cd9db33f5 feat: .devops/未命名项目.yml
continuous-integration/drone/push Build is passing Details
2022-08-16 16:54:15 +08:00
xxq250 6630e6454f Update '.trustie-pipeline.yml'
continuous-integration/drone/push Build is passing Details
2022-08-03 15:55:35 +08:00
xxq250 da1776429f Update '.trustie-pipeline.yml' 2022-08-03 15:40:22 +08:00
xxq250 e8a4c095f9 Update '.trustie-pipeline.yml'
continuous-integration/drone/push Build was killed Details
2022-08-02 18:26:17 +08:00
xxq250 f8fc4ef949 Update 1.txt
continuous-integration/drone/push Build is passing Details
2022-08-02 18:15:02 +08:00
xxq250 4de0d0ce21 Update '.trustie-pipeline.yml' 2022-08-02 17:31:55 +08:00
xxq250 039a3428f3 Update 1.txt 2022-08-02 17:30:46 +08:00
xxq250 b9b5dfe59a Update '.trustie-pipeline.yml' 2022-08-02 17:30:30 +08:00
xxq250 68e0dbf2be Update 1.txt 2022-08-02 14:26:48 +08:00
xxq250 58f45a1673 Update '.trustie-pipeline.yml' 2022-08-02 14:05:32 +08:00
wangwei10061 71eca307e6 Update '.trustie-pipeline.yml' 2022-07-27 18:25:22 +08:00
xxq250 81c8c260ee Update pom.xml
continuous-integration/drone/push Build is passing Details
2022-05-31 18:22:16 +08:00
xxq250 1bc0eab955 Update .trustie-pipeline.yml
continuous-integration/drone/push Build is failing Details
2022-05-31 17:59:31 +08:00
xxq250 e40ad7bdf4 Update mvn jdk
continuous-integration/drone/push Build is failing Details
2022-05-31 10:10:42 +08:00
xxq250 c511b6a32c Update 1.txt
continuous-integration/drone/push Build is failing Details
2022-05-30 14:54:17 +08:00
xxq250 181cb12915 Update '.trustie-pipeline.yml'
continuous-integration/drone/push Build is failing Details
2022-05-30 14:54:00 +08:00
xxq250 eebac6e653 Update '.trustie-pipeline.yml'
continuous-integration/drone/push Build is failing Details
2022-05-30 10:01:20 +08:00
xxq250 6b6b4427cd Update 1.txt
continuous-integration/drone/push Build is failing Details
2022-05-30 09:58:50 +08:00
xxq250 cd184c828c Update 1.txt
continuous-integration/drone/push Build is failing Details
2022-05-30 09:48:51 +08:00
xxq250 b553944925 Update '.trustie-pipeline.yml' 2022-05-30 09:48:23 +08:00
xxq250 1b56c0c2a7 Add 1.txt 2022-05-26 09:42:34 +08:00
m53297601 d3902eeafc Update .trustie-pipeline.yml 2021-09-28 11:30:39 +08:00
m53297601 7210c27b9e Update .trustie-pipeline.yml 2021-09-28 09:06:06 +08:00
m53297601 137cb81c25 Update pom.xml 2021-09-28 07:05:12 +08:00
m53297601 582dc8904c Update pom.xml 2021-09-28 06:54:55 +08:00
m53297601 5a45a5280b Update pom.xml 2021-09-28 06:53:42 +08:00
m53297601 ea1152503e Update pom.xml 2021-09-28 06:38:02 +08:00
m53297601 cdc5caea3f Update pom.xml 2021-09-28 06:37:13 +08:00
m53297601 82bed39df3 Update .gitignore 2021-09-27 19:19:39 +08:00
m53297601 4f5ccf33d1 Add hello_world.java 2021-08-24 17:39:36 +08:00
m53297601 1b7925ce92 Update README.md 2021-08-19 20:54:58 +08:00
m53297601 c0c3c63abc Update .gitignore 2021-08-19 20:52:41 +08:00
m53297601 1aabaa3be5 Update .gitignore 2021-08-03 09:43:10 +08:00
m53297601 d966f05384 Update pom.xml 2021-08-03 09:23:53 +08:00
m53297601 76c8b3e492 Update HelloWorld.java 2021-08-02 16:43:45 +08:00
m53297601 d1b4138513 update 2021-04-07 17:09:50 +08:00
daiao b43cfd47b4 111 2021-04-02 13:53:59 +08:00
Hjqreturn 40ba627dfe add 2021-04-02 13:48:56 +08:00
p15478209 b42324c2cc 修改文件 2021-04-02 11:31:03 +08:00
10 changed files with 58 additions and 45 deletions

33
.devops/PR通知.yml Normal file
View File

@ -0,0 +1,33 @@
version: 2
name: PR通知
description: 新的PR提交会有钉钉通知
global:
concurrent: 1
trigger:
webhook: gitlink@1.0.0
event:
- ref: pr
ruleset-operator: AND
workflow:
- ref: start
name: 开始
task: start
- ref: end
name: 结束
task: end
needs:
- dingtalk_notice_text_0
- ref: dingtalk_notice_text_0
name: 钉钉通知-文本
task: dingtalk_notice_text@1.0.2
input:
boot_webhook_url: ((dingdingtalk.token_url))
secret: ((dingdingtalk.token_sercet))
msg_text: '"【"+((trigger.user)) +
"】从"+((trigger.source_branch))+"提交PR到"+((trigger.target_branch)) +
",请您立即确认是否合并。"'
at_user_ids: '"[]"'
at_mobiles: '"[]"'
needs:
- start

3
.gitignore vendored
View File

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

View File

@ -1,7 +1,7 @@
kind: pipeline
type: docker
name: 开发流水线
name: master
platform:
os: linux
arch: amd64
@ -10,44 +10,6 @@ steps:
image: maven:3-jdk-10
commands:
- mvn install -DskipTests=true
# 本模板示例为上传软件包和部署脚本到home目录
# host、username、password可在参数管理中配置
- name: 上传文件
image: appleboy/drone-scp
settings:
host:
from_secret: deploy_ip
username:
from_secret: deploy_name
password:
from_secret: deploy_pwd
port: 3522
command_timeout: 2m
target: /opt/demo
source:
- target/*.war
- Dockerfile
# 需要将软件包与部署脚本提前上传到远程主机(见文件上传模板)
# host、username、password可在参数管理中配置
- name: 远程主机部署
image: appleboy/drone-ssh
settings:
host:
from_secret: deploy_ip
username:
from_secret: deploy_name
password:
from_secret: deploy_pwd
port: 3522
script:
- echo ====暂停容器开始11=======
- docker rm -f mo-test
- docker rmi mo-test:1.0
- cd /opt/demo
- echo ====开始部署=======
- docker build -t mo-test:1.0 .
- docker run -d -p 8080:8080 --name mo-test mo-test:1.0
- echo ====部署成功======
trigger:
branch:
- master

6
1.txt Normal file
View File

@ -0,0 +1,6 @@
111-222
asdfl
cssdf
sdlsls
s123

1
2.txt Normal file
View File

@ -0,0 +1 @@
123123

View File

@ -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)
![](https://forge.educoder.net/api/attachments/1663375?raw=true)
#### 3. 构建成功后,访问如下链接,即可查看效果
http://106.75.236.63:8080/demo/hello
![](https://forge.educoder.net/api/attachments/1663377)
![](https://forge.educoder.net/api/attachments/1663377?raw=true)

1
hello_world.java Normal file
View File

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

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
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">
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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>

View File

@ -14,7 +14,7 @@ public class HelloWorld extends HttpServlet {
@Override
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

7
test.txt Normal file
View File

@ -0,0 +1,7 @@
测试devops提交pr
啦111
123123
12314