| vijaynag | 8339ed2 | 2019-07-25 17:10:58 +0530 | [diff] [blame] | 1 | # Copyright 2019 TATA ELXSI |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
| 12 | # implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # Author: VIJAY NAG B S (vijaynag.bs@tataelxsi.co.in) |
| 16 | |
| 17 | ################################################################ |
| 18 | # Please execute this command prior to deploying this yaml file. |
| 19 | # __tag__ , __testName__ and __tempdir__ are placeholders for osm rel, testname and tempdir respectively. |
| 20 | # |
| 21 | # $ sed "s|__tag__|$TAG|; s|__testName__|$TEST|; s|__tempdir__|$tempdir|" osmclient-robot.yaml |
| 22 | # |
| 23 | ############################################################ |
| 24 | |
| 25 | apiVersion: batch/v1 |
| 26 | kind: Job |
| 27 | metadata: |
| 28 | name: osmclient-robot |
| 29 | labels: |
| 30 | ciStage: stage3 |
| 31 | spec: |
| 32 | containers: |
| 33 | - name: osm-client |
| 34 | image: opensourcemano/osmclient:__tag__ |
| 35 | envFrom: |
| 36 | - secretRef: |
| 37 | name: robot-secret |
| 38 | command: [ "bash", "-C", "/usr/share/osm-devops/robot-systest/run_test.sh", "--do_install", "-t", "__testName__" ] |
| 39 | volumeMounts: |
| 40 | - name: temp-dir |
| 41 | mountPath: /usr/share/osm-devops/systest/reports |
| 42 | restartPolicy: OnFailure |
| 43 | volumes: |
| 44 | - name: temp-dir |
| 45 | hostPath: |
| 46 | path: __tempdir__ |