NingSun | fd33dba | 2018-03-08 16:11:39 -0800 | [diff] [blame] | 1 | --- |
Jessica Wagantall | 9df5542 | 2019-04-19 17:09:34 -0700 | [diff] [blame] | 2 | #################### |
| 3 | # COMMON FUNCTIONS # |
| 4 | #################### |
| 5 | |
| 6 | - c_job_common: &c_job_common |
| 7 | name: c-job-common |
| 8 | |
| 9 | ###################### |
| 10 | # Default parameters # |
| 11 | ###################### |
| 12 | |
| 13 | branch: master |
| 14 | submodule-recursive: true |
Jessica Wagantall | 57ed49e | 2019-05-14 18:57:35 -0700 | [diff] [blame] | 15 | submodule-disable: false |
Jessica Wagantall | 9df5542 | 2019-04-19 17:09:34 -0700 | [diff] [blame] | 16 | submodule-timeout: 10 |
| 17 | |
| 18 | ##################### |
| 19 | # Job Configuration # |
| 20 | ##################### |
| 21 | |
| 22 | project-type: freestyle |
| 23 | node: '{build-node}' |
| 24 | disabled: false |
| 25 | |
| 26 | properties: |
| 27 | - infra-properties: |
| 28 | build-days-to-keep: '{build-days-to-keep}' |
| 29 | |
| 30 | parameters: |
| 31 | - lf-infra-parameters: |
| 32 | project: '{project}' |
| 33 | branch: '{branch}' |
| 34 | stream: '{stream}' |
| 35 | |
| 36 | scm: |
| 37 | - lf-infra-gerrit-scm: |
| 38 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 39 | git-url: '$GIT_URL/$PROJECT' |
| 40 | refspec: '$GERRIT_REFSPEC' |
| 41 | branch: '$GERRIT_BRANCH' |
| 42 | submodule-recursive: '{submodule-recursive}' |
Jessica Wagantall | 57ed49e | 2019-05-14 18:57:35 -0700 | [diff] [blame] | 43 | submodule-disable: '{submodule-disable}' |
Jessica Wagantall | 9df5542 | 2019-04-19 17:09:34 -0700 | [diff] [blame] | 44 | submodule-timeout: '{submodule-timeout}' |
| 45 | choosing-strategy: default |
| 46 | |
| 47 | wrappers: |
| 48 | - lf-infra-wrappers: |
| 49 | build-timeout: '{build-timeout}' |
| 50 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 51 | |
| 52 | publishers: |
| 53 | - lf-infra-publish |
| 54 | |
NingSun | fd33dba | 2018-03-08 16:11:39 -0800 | [diff] [blame] | 55 | - job-template: |
| 56 | # |
| 57 | # job template for build C/C++ project |
| 58 | # |
| 59 | # Required Variables: |
| 60 | # script: build script to execute |
| 61 | # |
NingSun | fd33dba | 2018-03-08 16:11:39 -0800 | [diff] [blame] | 62 | name: '{project-name}-{stream}-verify-c' |
Jessica Wagantall | 9df5542 | 2019-04-19 17:09:34 -0700 | [diff] [blame] | 63 | id: gerrit-verify-c |
| 64 | <<: *c_job_common |
NingSun | fd33dba | 2018-03-08 16:11:39 -0800 | [diff] [blame] | 65 | |
| 66 | triggers: |
| 67 | - gerrit-trigger-patch-submitted: |
| 68 | server: '{server-name}' |
| 69 | project: '{project}' |
| 70 | branch: '{branch}' |
| 71 | files: '**' |
| 72 | |
| 73 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 74 | - lf-infra-pre-build |
NingSun | fd33dba | 2018-03-08 16:11:39 -0800 | [diff] [blame] | 75 | - shell: '{script}' |
| 76 | |
Manjunath Ranganathaiah | 9d6c823 | 2018-08-15 11:42:10 -0700 | [diff] [blame] | 77 | - job-template: |
| 78 | # Job template for building & pushing docker images |
| 79 | # |
| 80 | # The purpose of this job template is to run: |
| 81 | # 1. login to the docker registry |
| 82 | # 2. run a specified shell builder |
| 83 | # |
Manjunath Ranganathaiah | 9d6c823 | 2018-08-15 11:42:10 -0700 | [diff] [blame] | 84 | name: '{project-name}-{stream}-docker-c-shell-daily' |
Jessica Wagantall | 9df5542 | 2019-04-19 17:09:34 -0700 | [diff] [blame] | 85 | id: gerrit-docker-c-shell-daily |
| 86 | <<: *c_job_common |
Manjunath Ranganathaiah | 9d6c823 | 2018-08-15 11:42:10 -0700 | [diff] [blame] | 87 | node: 'ubuntu1604-docker-8c-8g' |
Manjunath Ranganathaiah | 9d6c823 | 2018-08-15 11:42:10 -0700 | [diff] [blame] | 88 | |
| 89 | triggers: |
| 90 | # 12 AM UTC |
Gary Wu | 5f4277f | 2018-09-28 10:36:23 -0700 | [diff] [blame] | 91 | - timed: '@daily' |
Manjunath Ranganathaiah | 9d6c823 | 2018-08-15 11:42:10 -0700 | [diff] [blame] | 92 | - gerrit-trigger-release-manually: |
| 93 | server: '{server-name}' |
| 94 | project: '{project}' |
| 95 | branch: '{branch}' |
| 96 | |
| 97 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 98 | - lf-infra-pre-build |
Manjunath Ranganathaiah | 9d6c823 | 2018-08-15 11:42:10 -0700 | [diff] [blame] | 99 | - provide-maven-settings: |
| 100 | global-settings-file: 'global-settings' |
| 101 | settings-file: '{mvn-settings}' |
| 102 | - docker-login |
| 103 | - shell: '{script}' |
Michal Ptacek | 8ce05f2 | 2019-05-20 18:25:56 +0000 | [diff] [blame] | 104 | |
| 105 | - job-template: |
| 106 | # |
| 107 | # job template for build project executed every 6hrs |
| 108 | # |
| 109 | # Required Variables: |
| 110 | # script: build script to execute |
| 111 | name: '{name}-{stream}-shell-6hrs' |
| 112 | node: '{build-node}' |
| 113 | type: freestyle |
| 114 | |
Michal Ptacek | a0af7fb | 2019-06-24 12:59:54 +0000 | [diff] [blame^] | 115 | parameters: |
| 116 | - lf-infra-parameters: |
| 117 | branch: '{branch}' |
| 118 | project: '{project}' |
| 119 | stream: '{stream}' |
| 120 | lftools-version: '{lftools-version}' |
| 121 | |
| 122 | scm: |
| 123 | - gerrit-trigger-scm: |
| 124 | refspec: '$GERRIT_REFSPEC' |
| 125 | submodule-recursive: '{submodule-recursive}' |
| 126 | choosing-strategy: 'gerrit' |
| 127 | |
Michal Ptacek | 8ce05f2 | 2019-05-20 18:25:56 +0000 | [diff] [blame] | 128 | triggers: |
| 129 | - timed: '00 */6 * * *' |
| 130 | |
| 131 | builders: |
| 132 | - shell: '{script}' |
| 133 | |
| 134 | publishers: |
| 135 | - lf-infra-publish |