diff options
author | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2017-02-13 21:57:52 +0100 |
---|---|---|
committer | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2017-02-13 21:57:52 +0100 |
commit | c6ed28c4baa79a74c5ff23ecdcf5993a9b923321 (patch) | |
tree | 82c538e3e25be36a73d747b5b1153b891071f022 /jjb/ci-AGL-verify | |
parent | 5d7ccc6cea67e46fd081f18b653deb1d1208424e (diff) |
Put new CI job into production
Change-Id: I226d0b21dcec52251ad07ecb60ba8e67e6d3f1f6
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'jjb/ci-AGL-verify')
-rw-r--r-- | jjb/ci-AGL-verify/.gitignore | 1 | ||||
-rw-r--r-- | jjb/ci-AGL-verify/ci-platform-jjb.yaml | 325 |
2 files changed, 326 insertions, 0 deletions
diff --git a/jjb/ci-AGL-verify/.gitignore b/jjb/ci-AGL-verify/.gitignore new file mode 100644 index 00000000..7856d0a4 --- /dev/null +++ b/jjb/ci-AGL-verify/.gitignore @@ -0,0 +1 @@ +ATTIC/ diff --git a/jjb/ci-AGL-verify/ci-platform-jjb.yaml b/jjb/ci-AGL-verify/ci-platform-jjb.yaml new file mode 100644 index 00000000..21631817 --- /dev/null +++ b/jjb/ci-AGL-verify/ci-platform-jjb.yaml @@ -0,0 +1,325 @@ +- project: + name: ci-platform-AGL + machine: + - porter-nogfx + - raspberrypi3 + - intel-corei7-64 + - dra7xx-evm + - qemux86-64 + project: + - meta-agl + - meta-agl-demo + - meta-agl-devel + - meta-agl-extra + - AGL-repo + - meta-renesas + jobs: + - ci-platform-{project}-verify + - ci-platform-{project}-verify-CIB-{machine} + - ci-platform-{project}-verify-CIB-finish + - ci-platform-{project}-verify-CIBT-{machine} + - ci-platform-{project}-verify-CIBT-finish + +# +# -verify = trigger from gerrit and control job +################################################ + +- job-template: + name: 'ci-platform-{project}-verify' + project-type: multijob + concurrent: true + node: control-slave + parameters: + - string: + name: GERRIT_PROJECT + default: 'AGL/{project}' + description: "Project to build" + - string: + name: GERRIT_BRANCH + default: master + description: "branch to build" + - string: + name: GERRIT_REFSPEC + default: refs/heads/master + description: "refspec to build" + - string: + name: GERRIT_CHANGE_NUMBER + default: "8313" + description: "change # to build" + - string: + name: GERRIT_PATCHSET_NUMBER + default: "2" + description: "patchset # to build" + + build-discarder: + days-to-keep: 30 + artifact-days-to-keep: -1 + artifact-num-to-keep: 5 + + triggers: + - gerrit-trigger-patch-submitted-silent: + name: 'AGL/{project}' + branch: '**/**/**' + + wrappers: + - agl-infra-wrappers: + build-timeout: '{build-timeout}' + + builders: + - multijob: + name: CIB-{project} + condition: COMPLETED + projects: + - name: 'ci-platform-{project}-verify-CIB-porter-nogfx' + current-parameters: true + - name: 'ci-platform-{project}-verify-CIB-intel-corei7-64' + current-parameters: true + - name: 'ci-platform-{project}-verify-CIB-raspberrypi3' + current-parameters: true + - name: 'ci-platform-{project}-verify-CIB-dra7xx-evm' + current-parameters: true + - name: 'ci-platform-{project}-verify-CIB-qemux86-64' + current-parameters: true + - multijob: + name: CIB-{project}-finish + condition: COMPLETED + projects: + - name: 'ci-platform-{project}-verify-CIB-finish' + current-parameters: true + - multijob: + name: CIBT-{project} + condition: COMPLETED + projects: + - name: 'ci-platform-{project}-verify-CIBT-porter-nogfx' + current-parameters: true + - name: 'ci-platform-{project}-verify-CIBT-intel-corei7-64' + current-parameters: true + - name: 'ci-platform-{project}-verify-CIBT-raspberrypi3' + current-parameters: true + - name: 'ci-platform-{project}-verify-CIBT-dra7xx-evm' + current-parameters: true + - name: 'ci-platform-{project}-verify-CIBT-qemux86-64' + current-parameters: true + - multijob: + name: 'CIBT-{project}-finish' + condition: COMPLETED + projects: + - name: 'ci-platform-{project}-verify-CIBT-finish' + current-parameters: true + +# publishers: + + +# +# CIB-{machine} +############### + +- job-template: + name: 'ci-platform-{project}-verify-CIB-{machine}' + project-type: freestyle + concurrent: true + node: agl-test-slave + + parameters: + - string: + name: GERRIT_PROJECT + default: 'AGL/{project}' + description: "Project to build" + - string: + name: GERRIT_BRANCH + default: master + description: "branch to build" + - string: + name: GERRIT_REFSPEC + default: refs/heads/master + description: "refspec to build" + - string: + name: GERRIT_CHANGE_NUMBER + default: "8313" + description: "change # to build" + - string: + name: GERRIT_PATCHSET_NUMBER + default: "2" + description: "patchset # to build" + - string: + name: MACHINE + default: '{machine}' + description: "Machine to build" + + build-discarder: + days-to-keep: 30 + artifact-days-to-keep: -1 + artifact-num-to-keep: 5 + + wrappers: + - agl-infra-wrappers: + build-timeout: '{build-timeout}' + - openstack: + single-use: true + + builders: + - shell: + !include-raw-escape: + - ../common/include-agl-header.sh + - ../common/include-agl-repo.sh + - ../common/include-agl-select.sh + - ../common/include-agl-source-aglsetup.sh + - ../common/include-agl-auto-conf.sh + - ../common/include-agl-limit-parallelism.sh + - ../common/include-agl-cat-auto-conf.sh + - ../common/include-agl-bitbake-image.sh + - ../common/include-agl-run-test-prepare.sh + - ../common/include-agl-run-test-rsync-changeid.sh + +# +# CIB-finish +############ + +- job-template: + name: 'ci-platform-{project}-verify-CIB-finish' + project-type: freestyle + concurrent: true + node: control-slave + + parameters: + - string: + name: GERRIT_PROJECT + default: 'AGL/{project}' + description: "Project to build" + - string: + name: GERRIT_BRANCH + default: master + description: "branch to build" + - string: + name: GERRIT_REFSPEC + default: refs/heads/master + description: "refspec to build" + - string: + name: GERRIT_CHANGE_NUMBER + default: "8313" + description: "change # to build" + - string: + name: GERRIT_PATCHSET_NUMBER + default: "2" + description: "patchset # to build" + + build-discarder: + days-to-keep: 30 + artifact-days-to-keep: -1 + artifact-num-to-keep: 5 + + wrappers: + - agl-infra-wrappers: + build-timeout: '{build-timeout}' + + builders: + - shell: "echo YAY" +#; ssh -p 29418 agl-jobbuilder@gerrit.automotivelinux.org gerrit review ${GERRIT_CHANGE_NUMBER},${GERRIT_PATCHSET_NUMBER} --label=ci-image-build=+1 -n NONE --message='CI-Image-Build '" + + +# +# CIBT-{machine} 'BOOT TEST' +############################ + +- job-template: + name: 'ci-platform-{project}-verify-CIBT-{machine}' + project-type: freestyle + concurrent: true + node: agl-test-slave + + parameters: + - string: + name: GERRIT_PROJECT + default: 'AGL/{project}' + description: "Project to build" + - string: + name: GERRIT_BRANCH + default: master + description: "branch to build" + - string: + name: GERRIT_REFSPEC + default: refs/heads/master + description: "refspec to build" + - string: + name: GERRIT_CHANGE_NUMBER + default: "8313" + description: "change # to build" + - string: + name: GERRIT_PATCHSET_NUMBER + default: "2" + description: "patchset # to build" + - string: + name: MACHINE + default: '{machine}' + description: "Machine to build" + + build-discarder: + days-to-keep: 30 + artifact-days-to-keep: -1 + artifact-num-to-keep: 5 + + wrappers: + - agl-infra-wrappers: + build-timeout: '{build-timeout}' + - openstack: + single-use: true + - credentials-binding: + - username-password-separated: + credential-id: agl_main_lava_instance + username: AGLLAVAUSER + password: AGLLAVATOKEN + + builders: + - shell: + !include-raw-escape: + - ../common/include-agl-header.sh + - ../common/include-agl-repo.sh + - ../common/include-agl-select.sh + - ../common/include-agl-run-test-prepare.sh + - ../common/include-agl-run-test-short.sh + + +# +# CIBT-finish +################ + +- job-template: + name: 'ci-platform-{project}-verify-CIBT-finish' + project-type: freestyle + concurrent: true + node: control-slave + + parameters: + - string: + name: GERRIT_PROJECT + default: 'AGL/{project}' + description: "Project to build" + - string: + name: GERRIT_BRANCH + default: master + description: "branch to build" + - string: + name: GERRIT_REFSPEC + default: refs/heads/master + description: "refspec to build" + - string: + name: GERRIT_CHANGE_NUMBER + default: "8313" + description: "change # to build" + - string: + name: GERRIT_PATCHSET_NUMBER + default: "2" + description: "patchset # to build" + + build-discarder: + days-to-keep: 30 + artifact-days-to-keep: -1 + artifact-num-to-keep: 5 + + wrappers: + - agl-infra-wrappers: + build-timeout: '{build-timeout}' + + builders: + - shell: "echo YAY" +#; ssh -p 29418 agl-jobbuilder@gerrit.automotivelinux.org gerrit review ${GERRIT_CHANGE_NUMBER},${GERRIT_PATCHSET_NUMBER} --label=ci-image-build=+1 -n NONE --message='CI-Image-Build '" |