Compare commits

..

14 Commits

Author SHA1 Message Date
wangwei10061 8f799ee3d7 Update '.trustie-pipeline.yml'
continuous-integration/drone/push Build was killed Details
2022-08-09 14:13:42 +08:00
wangwei10061 416083a14f Update '.trustie-pipeline.yml'
continuous-integration/drone/push Build was killed Details
2022-08-09 14:07:24 +08:00
xxq250 6032266320 Update '.trustie-pipeline.yml'
continuous-integration/drone/push Build was killed Details
2022-08-02 18:28:16 +08:00
xxq250 a247dc99f5 Update 1.txt
continuous-integration/drone/push Build is failing Details
2022-05-31 09:21:39 +08:00
xxq250 745eb3bacb Update '.trustie-pipeline.yml'
continuous-integration/drone/push Build is failing Details
2022-05-30 09:56:56 +08:00
xxq250 d84f6081b5 Update '.trustie-pipeline.yml' 2022-05-27 17:11:05 +08:00
xiaoxiaoqiong f88741ed57 test 2022-05-29 09:44:39 +08:00
yystopf 13bae69aeb Update HelloWorld.java 2022-05-26 09:43:35 +08:00
xxq250 5daae28482 Add 1.txt 2022-05-26 09:42:58 +08:00
xxq250 f46610fb8e Update '.trustie-pipeline.yml' 2022-05-26 09:39:52 +08:00
m53297601 2c359e9fcd Update .gitignore 2021-09-27 19:20:33 +08:00
p47623895 d57aaf0de7 Update '.trustie-pipeline.yml' 2021-04-09 10:45:05 +08:00
p47623895 3bf40106ea Update '.trustie-pipeline.yml' 2021-04-09 10:43:38 +08:00
m53297601 07027667d2 Update '.trustie-pipeline.yml' 2021-04-02 10:50:18 +08:00
10 changed files with 40 additions and 60 deletions

View File

@ -1,33 +0,0 @@
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

4
.gitignore vendored
View File

@ -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

View File

@ -1,17 +1,44 @@
kind: pipeline
type: docker
name: master
name: develop流水线
platform:
os: linux
arch: amd64
arch: arm64
steps:
- name: maven
image: maven:3-jdk-10
commands:
- mvn install -DskipTests=true
- name: maven
image: maven:3-jdk-10
commands:
- mvn install -DskipTests=true
- name: maven
image: maven:3-jdk-10
commands:
- mvn install -DskipTests=true
- name: maven
image: maven:3-jdk-10
commands:
- mvn install -DskipTests=true
# 需要将软件包与部署脚本提前上传到远程主机(见文件上传模板)
# host、username、password可在参数管理中配置
- name: 远程主机部署
image: appleboy/drone-ssh
settings:
host:
from_secret: ip
username:
from_secret: name
password:
from_secret: pwd
port: 22
script:
- chmod +x /home/deploy.sh
- ./home/deploy.sh
trigger:
branch:
- master
- develop
event:
- push

9
1.txt
View File

@ -1,6 +1,3 @@
111-222
asdfl
cssdf
sdlsls
s123
ci test
error?
dev

1
2.txt
View File

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

View File

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

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! last mody";
message = "Hello world, this message is from servlet! Good Luck.a";
}
@Override

View File

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