blob: 2820df52e5ea035237b1a9c8f75f3547a6e232c1 [file] [log] [blame]
Kailash Khalasi0f528d82018-05-17 18:39:28 -07001---
Zack Williams8717b862018-06-29 16:06:47 -07002# xos-rest-gw unit test
Kailash Khalasi0f528d82018-05-17 18:39:28 -07003
Kailash Khalasi4d2e5d62018-05-21 10:01:05 -07004- job-template:
Zack Williams8717b862018-06-29 16:06:47 -07005 id: 'xos-rest-gw-unit'
6 name: '{id}'
Kailash Khalasi0f528d82018-05-17 18:39:28 -07007
8 description: |
9 <!-- Managed by Jenkins Job Builder -->
Zack Williams8717b862018-06-29 16:06:47 -070010 Created by {id} job-template from ci-management/jjb/xos-rest-gw-unit.yaml
Kailash Khalasi0f528d82018-05-17 18:39:28 -070011 Test for the XOS Rest Gateway that combine REST APIs and WebSocket
12
Kailash Khalasi0f528d82018-05-17 18:39:28 -070013 properties:
14 - cord-infra-properties:
15 build-days-to-keep: '{build-days-to-keep}'
16 artifact-num-to-keep: '{artifact-num-to-keep}'
17
18 # `npm install` can take >10m depending on connectivity
19 wrappers:
20 - lf-infra-wrappers:
21 build-timeout: 20
22 jenkins-ssh-credential: '{jenkins-ssh-credential}'
23
Kailash Khalasi4d2e5d62018-05-21 10:01:05 -070024 triggers:
25 - cord-infra-gerrit-trigger-patchset:
26 gerrit-server-name: '{gerrit-server-name}'
Zack Williams8717b862018-06-29 16:06:47 -070027 project-regexp: '^{project}$'
28 branch-regexp: '{branch-regexp}'
Kailash Khalasi4d2e5d62018-05-21 10:01:05 -070029 dependency-jobs: '{dependency-jobs}'
30 file-include-regexp: '{all-files-regexp}'
31
Zack Williams16fa7aa2018-06-29 14:55:58 -070032 scm:
33 - lf-infra-gerrit-scm:
34 git-url: '$GIT_URL/$GERRIT_PROJECT'
35 refspec: '$GERRIT_REFSPEC'
36 branch: '$GERRIT_BRANCH'
Zack Williamsccc14742020-01-22 13:15:59 -070037 submodule-disable: '{submodule-disable}'
Zack Williams16fa7aa2018-06-29 14:55:58 -070038 submodule-recursive: 'false'
Zack Williamsccc14742020-01-22 13:15:59 -070039 submodule-timeout: '{submodule-timeout}'
Zack Williams16fa7aa2018-06-29 14:55:58 -070040 choosing-strategy: gerrit
41 jenkins-ssh-credential: '{jenkins-ssh-credential}'
42
Hung-Wei Chiuf6cbde22021-04-22 22:15:23 -070043 node: 'ubuntu18.04-basebuild-1c-2g'
Zack Williams16fa7aa2018-06-29 14:55:58 -070044 project-type: freestyle
45 concurrent: true
46
Kailash Khalasi0f528d82018-05-17 18:39:28 -070047 builders:
48 - shell: |
49 #/usr/bin/env bash
Zack Williams16fa7aa2018-06-29 14:55:58 -070050 set -eu -o pipefail
51
Kailash Khalasi0f528d82018-05-17 18:39:28 -070052 npm install
53 npm test
Zack Williams16fa7aa2018-06-29 14:55:58 -070054
Joey Armstrongaf679da2023-01-31 14:22:41 -050055
56# [EOF]