From 17c1200b2c49565e8561ce91efad7eec2e1b147f Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Tue, 14 Jun 2022 16:20:15 +0800 Subject: [PATCH 1/6] * Finish task #55002. --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f3633f45b3..93a042b05c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,6 +19,10 @@ packages: - merge_request - master - tags +notify: + script: + - curl --location --request POST 'http://api.lf.oop.cc/api/v1/xuan/chatMessage' \ --header 'Content-Type: application/json' \ --data-raw '{ "gid": "84be4c6e-02e3-4fdc-b081-318c0c1eca02", "title": "开源包下载地址", "content": "点击查看详情链接", "url": "http://10.0.7.242:8080/allpacks/" }' + when: on_success cleanup_packages: script: - make clean From fa3520017b11aa801e1b97469395477a503742da Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Tue, 14 Jun 2022 16:26:44 +0800 Subject: [PATCH 2/6] * Adjust the code. --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 93a042b05c..4328f2314c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,7 +21,7 @@ packages: - tags notify: script: - - curl --location --request POST 'http://api.lf.oop.cc/api/v1/xuan/chatMessage' \ --header 'Content-Type: application/json' \ --data-raw '{ "gid": "84be4c6e-02e3-4fdc-b081-318c0c1eca02", "title": "开源包下载地址", "content": "点击查看详情链接", "url": "http://10.0.7.242:8080/allpacks/" }' + - curl --location --request POST 'http://api.lf.oop.cc/api/v1/xuan/chatMessage' --header 'Content-Type: application/json' --data-raw '{ "gid": "84be4c6e-02e3-4fdc-b081-318c0c1eca02", "title": "开源包下载地址", "content": "点击查看详情链接", "url": "http://10.0.7.242:8080/allpacks/" }' when: on_success cleanup_packages: script: From 760cb05fb9cf0bf366d961101283f900fa167e5a Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Tue, 14 Jun 2022 16:53:48 +0800 Subject: [PATCH 3/6] * Format the code. --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4328f2314c..57ff6ba51b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,7 +21,7 @@ packages: - tags notify: script: - - curl --location --request POST 'http://api.lf.oop.cc/api/v1/xuan/chatMessage' --header 'Content-Type: application/json' --data-raw '{ "gid": "84be4c6e-02e3-4fdc-b081-318c0c1eca02", "title": "开源包下载地址", "content": "点击查看详情链接", "url": "http://10.0.7.242:8080/allpacks/" }' + - 'curl --location --request POST ''http://api.lf.oop.cc/api/v1/xuan/chatMessage'' --header ''Content-Type: application/json'' --data-raw ''{"gid": "84be4c6e-02e3-4fdc-b081-318c0c1eca02", "title": "开源包下载地址", "content": "点击查看详情链接", "url": "http://10.0.7.242:8080/allpacks/"}''' when: on_success cleanup_packages: script: From a1a2d4f055c0b2c9d22ca4f8481363ec53ad768d Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Tue, 14 Jun 2022 17:10:02 +0800 Subject: [PATCH 4/6] * Add trigger condition. --- .gitlab-ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 57ff6ba51b..22ec2bac35 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,7 +22,12 @@ packages: notify: script: - 'curl --location --request POST ''http://api.lf.oop.cc/api/v1/xuan/chatMessage'' --header ''Content-Type: application/json'' --data-raw ''{"gid": "84be4c6e-02e3-4fdc-b081-318c0c1eca02", "title": "开源包下载地址", "content": "点击查看详情链接", "url": "http://10.0.7.242:8080/allpacks/"}''' + needs: [packages] when: on_success + only: + - merge_request + - master + - tags cleanup_packages: script: - make clean From 080f54a1b2b43370547faaa3b7f274ba9605c6d4 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Tue, 14 Jun 2022 17:32:47 +0800 Subject: [PATCH 5/6] * Remove the unused code. --- .gitlab-ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 22ec2bac35..700e55b09d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,7 +22,6 @@ packages: notify: script: - 'curl --location --request POST ''http://api.lf.oop.cc/api/v1/xuan/chatMessage'' --header ''Content-Type: application/json'' --data-raw ''{"gid": "84be4c6e-02e3-4fdc-b081-318c0c1eca02", "title": "开源包下载地址", "content": "点击查看详情链接", "url": "http://10.0.7.242:8080/allpacks/"}''' - needs: [packages] when: on_success only: - merge_request From 9ac5c54becd99bc01c9e1abc14da18a4713eefaa Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Tue, 14 Jun 2022 17:36:47 +0800 Subject: [PATCH 6/6] * Modify the triggering conditions. --- .gitlab-ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 700e55b09d..b73e38c574 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,7 +24,6 @@ notify: - 'curl --location --request POST ''http://api.lf.oop.cc/api/v1/xuan/chatMessage'' --header ''Content-Type: application/json'' --data-raw ''{"gid": "84be4c6e-02e3-4fdc-b081-318c0c1eca02", "title": "开源包下载地址", "content": "点击查看详情链接", "url": "http://10.0.7.242:8080/allpacks/"}''' when: on_success only: - - merge_request - master - tags cleanup_packages: