| @@ -1,3 +1,4 @@ | |||||
| kind: pipeline | kind: pipeline | ||||
| type: docker | type: docker | ||||
| name: 1 | name: 1 | ||||
| @@ -9,14 +10,7 @@ volumes: | |||||
| - name: cache | - name: cache | ||||
| host: | host: | ||||
| path: /tmp/cache | path: /tmp/cache | ||||
| steps: | 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 | - name: build | ||||
| image: python:3 | image: python:3 | ||||
| @@ -34,6 +28,13 @@ steps: | |||||
| volumes: | volumes: | ||||
| - name: cache | - name: cache | ||||
| path: /tmp/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: | trigger: | ||||
| branch: | branch: | ||||