From 43c0cfe419216b6e3ffc0fb1d5adcc6072ab4a4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=97=AD?= <22476705@qq.com> Date: Fri, 22 Apr 2022 10:37:47 +0000 Subject: [PATCH 1/4] update .workflow/BranchPipeline.yml. --- .workflow/BranchPipeline.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.workflow/BranchPipeline.yml b/.workflow/BranchPipeline.yml index d4f28b8..6f5c1cc 100644 --- a/.workflow/BranchPipeline.yml +++ b/.workflow/BranchPipeline.yml @@ -15,14 +15,7 @@ stages: mavenVersion: 3.3.9 # 构建命令 commands: - - mvn -B clean package -Dmaven.test.skip=true - # 非必填字段,开启后表示将构建产物暂存,但不会上传到制品库中,7天后自动清除 - artifacts: - # 构建产物名字,作为产物的唯一标识可向下传递,支持自定义,默认为BUILD_ARTIFACT。在下游可以通过${BUILD_ARTIFACT}方式引用来获取构建物地址 - - name: BUILD_ARTIFACT - # 构建产物获取路径,是指代码编译完毕之后构建物的所在路径,如通常jar包在target目录下。当前目录为代码库根目录 - path: - - ./target + - echo '哈哈' - step: publish@general_artifacts name: publish_general_artifacts displayName: 上传制品 -- Gitee From bc1b11469e7b205590ec59998adabef5383b17b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=97=AD?= <22476705@qq.com> Date: Fri, 22 Apr 2022 10:39:29 +0000 Subject: [PATCH 2/4] update .workflow/PRPipeline.yml. --- .workflow/PRPipeline.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.workflow/PRPipeline.yml b/.workflow/PRPipeline.yml index dc8cfbd..e6fc503 100644 --- a/.workflow/PRPipeline.yml +++ b/.workflow/PRPipeline.yml @@ -15,14 +15,7 @@ stages: mavenVersion: 3.3.9 # 构建命令 commands: - - mvn -B clean package -Dmaven.test.skip=true - # 非必填字段,开启后表示将构建产物暂存,但不会上传到制品库中,7天后自动清除 - artifacts: - # 构建产物名字,作为产物的唯一标识可向下传递,支持自定义,默认为BUILD_ARTIFACT。在下游可以通过${BUILD_ARTIFACT}方式引用来获取构建物地址 - - name: BUILD_ARTIFACT - # 构建产物获取路径,是指代码编译完毕之后构建物的所在路径,如通常jar包在target目录下。当前目录为代码库根目录 - path: - - ./target + - echo '哈哈哈' triggers: pr: branches: -- Gitee From f23670c4e47ad0f8c98903e76bc72ec1870c8d6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=97=AD?= <22476705@qq.com> Date: Fri, 22 Apr 2022 10:41:42 +0000 Subject: [PATCH 3/4] update PRPipeline.yml for Gitee Go updated_at:2022-04-22 10:41:42 --- .workflow/PRPipeline.yml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/.workflow/PRPipeline.yml b/.workflow/PRPipeline.yml index e6fc503..19ec898 100644 --- a/.workflow/PRPipeline.yml +++ b/.workflow/PRPipeline.yml @@ -1,23 +1,28 @@ version: '1.0' name: pr-pipeline displayName: PRPipeline +triggers: + trigger: auto + pr: + branches: + include: + - master + comments: + include: + - ^test.* stages: - - stage: - name: compile + - name: compile displayName: 编译 + strategy: naturally + trigger: auto steps: - step: build@maven name: build_maven displayName: Maven 构建 - # 支持6、7、8、9、10、11六个版本 jdkVersion: 8 - # 支持2.2.1、3.2.5、3.3.9、3.5.2、3.5.3、3.5.4、3.6.1、3.6.3八个版本 mavenVersion: 3.3.9 - # 构建命令 commands: - echo '哈哈哈' -triggers: - pr: - branches: - include: - - master \ No newline at end of file +permissions: + - role: admin + members: [] -- Gitee From 6229369b14ae8d96518405b29c9db84473d61c87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=97=AD?= <22476705@qq.com> Date: Fri, 22 Apr 2022 10:42:14 +0000 Subject: [PATCH 4/4] update PRPipeline.yml for Gitee Go updated_at:2022-04-22 10:42:14 --- .workflow/PRPipeline.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.workflow/PRPipeline.yml b/.workflow/PRPipeline.yml index 19ec898..40cce35 100644 --- a/.workflow/PRPipeline.yml +++ b/.workflow/PRPipeline.yml @@ -22,7 +22,12 @@ stages: jdkVersion: 8 mavenVersion: 3.3.9 commands: - - echo '哈哈哈' + - echo '1111' + artifacts: + - name: BUILD_ARTIFACT + path: + - ./target + settings: [] permissions: - role: admin members: [] -- Gitee