diff --git a/.drone.yml b/.drone.yml index 7a00373..ba12f0b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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: