Zack Williams | be2f86f | 2019-09-30 22:39:13 -0700 | [diff] [blame] | 1 | --- |
Zack Williams | be54231 | 2022-06-23 21:51:32 -0700 | [diff] [blame] | 2 | # SPDX-FileCopyrightText: 2020 Open Networking Foundation <info@opennetworking.org> |
| 3 | # SPDX-License-Identifier: Apache-2.0 |
| 4 | |
Zack Williams | be2f86f | 2019-09-30 22:39:13 -0700 | [diff] [blame] | 5 | # sync built directory to a remote server |
| 6 | |
| 7 | - job-template: |
| 8 | id: sync-dir |
| 9 | name: "sync-dir_{project}" |
| 10 | description: | |
| 11 | Created by {id} job-template from ci-management/jjb/templates/sync-dir.yaml |
| 12 | After merge run a build step then upload files to a directory remote server. |
| 13 | |
| 14 | parameters: |
| 15 | - string: |
| 16 | name: BUILD_COMMAND |
| 17 | default: '{build-command}' |
| 18 | description: 'Name of the command to run to generate artifacts' |
| 19 | |
| 20 | - string: |
| 21 | name: BUILD_OUTPUT_PATH |
| 22 | default: '{build-output-path}' |
Zack Williams | be54231 | 2022-06-23 21:51:32 -0700 | [diff] [blame] | 23 | description: >- |
| 24 | Path of files where build output is created by build command, relative to code checkout location |
Zack Williams | be2f86f | 2019-09-30 22:39:13 -0700 | [diff] [blame] | 25 | |
| 26 | - string: |
| 27 | name: SYNC_TARGET_SERVER |
| 28 | default: '{sync-target-server}' |
| 29 | description: 'Name of server where built files will be synced' |
| 30 | |
| 31 | - string: |
| 32 | name: SYNC_TARGET_PATH |
| 33 | default: '{sync-target-path}' |
| 34 | description: 'Directory path on target server where the files will be synced' |
| 35 | |
| 36 | triggers: |
Zack Williams | be54231 | 2022-06-23 21:51:32 -0700 | [diff] [blame] | 37 | - onf-infra-gerrit-trigger-merge: |
Zack Williams | be2f86f | 2019-09-30 22:39:13 -0700 | [diff] [blame] | 38 | gerrit-server-name: '{gerrit-server-name}' |
| 39 | project-regexp: '^{project}$' |
| 40 | branch-regexp: '{branch-regexp}' |
| 41 | file-include-regexp: '{all-files-regexp}' |
| 42 | dependency-jobs: '{dependency-jobs}' |
| 43 | |
| 44 | properties: |
Zack Williams | be54231 | 2022-06-23 21:51:32 -0700 | [diff] [blame] | 45 | - onf-infra-properties: |
Zack Williams | be2f86f | 2019-09-30 22:39:13 -0700 | [diff] [blame] | 46 | build-days-to-keep: '{build-days-to-keep}' |
| 47 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 48 | |
| 49 | wrappers: |
| 50 | - onf-infra-rsync-wrappers: |
| 51 | build-timeout: '{build-timeout}' |
Zack Williams | be54231 | 2022-06-23 21:51:32 -0700 | [diff] [blame] | 52 | ssh_credential_list: |
| 53 | - 'new-cord-jenkins-ssh' |
Zack Williams | be2f86f | 2019-09-30 22:39:13 -0700 | [diff] [blame] | 54 | |
| 55 | scm: |
Zack Williams | be54231 | 2022-06-23 21:51:32 -0700 | [diff] [blame] | 56 | - onf-infra-gerrit-scm: |
| 57 | git-url: '{gerrit-server-ssh-url}/$GERRIT_PROJECT' |
Zack Williams | be2f86f | 2019-09-30 22:39:13 -0700 | [diff] [blame] | 58 | refspec: '$GERRIT_REFSPEC' |
| 59 | branch: '$GERRIT_BRANCH' |
Zack Williams | ccc1474 | 2020-01-22 13:15:59 -0700 | [diff] [blame] | 60 | submodule-disable: '{submodule-disable}' |
Zack Williams | be2f86f | 2019-09-30 22:39:13 -0700 | [diff] [blame] | 61 | submodule-recursive: 'false' |
Zack Williams | ccc1474 | 2020-01-22 13:15:59 -0700 | [diff] [blame] | 62 | submodule-timeout: '{submodule-timeout}' |
Zack Williams | be2f86f | 2019-09-30 22:39:13 -0700 | [diff] [blame] | 63 | choosing-strategy: gerrit |
Zack Williams | be54231 | 2022-06-23 21:51:32 -0700 | [diff] [blame] | 64 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 65 | basedir: '' |
Zack Williams | be2f86f | 2019-09-30 22:39:13 -0700 | [diff] [blame] | 66 | |
| 67 | node: '{build-node}' |
| 68 | project-type: freestyle |
| 69 | concurrent: true |
| 70 | |
| 71 | builders: |
Zack Williams | be54231 | 2022-06-23 21:51:32 -0700 | [diff] [blame] | 72 | - shell: !include-raw-escape: jjb/shell/sync-dir.sh |
Zack Williams | be2f86f | 2019-09-30 22:39:13 -0700 | [diff] [blame] | 73 | |
Joey Armstrong | af679da | 2023-01-31 14:22:41 -0500 | [diff] [blame^] | 74 | |
| 75 | # [EOF] |