Browse Source

update pipeline for master branch

master
wangwei2 1 year ago
parent
commit
7921ecdb0f
1 changed files with 8 additions and 7 deletions
  1. +8
    -7
      .drone.yml

+ 8
- 7
.drone.yml View File

@@ -1,3 +1,4 @@

kind: pipeline
type: docker
name: 1
@@ -9,14 +10,7 @@ volumes:
- name: cache
host:
path: /tmp/cache
steps:
- name: detection
image: python:3
failure: ignore
commands:
- echo **detection test**
- curl 'http://121.40.129.71:40111/openi/projects/droneDetect' -X POST --header 'content-type:application/json;charset=UTF-8' -d '{"currentUser":"wangwei2","repoOwner":"wangwei2","repository":"report-python3","branchName":"master"}'

- name: build
image: python:3
@@ -34,6 +28,13 @@ steps:
volumes:
- name: cache
path: /tmp/cache
- name: detection
image: python
failure: ignore
commands:
- echo **detection test**
- curl 'http://121.40.129.71:40111/openi/projects/droneDetect' -X POST --header 'content-type:application/json;charset=UTF-8' -d '{"currentUser":"wangwei","repoOwner":"wangwei","repository":"python-demo", branchName":"master"}'

trigger:
branch:


Loading…
Cancel
Save