- 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-start - ci-platform-{project}-verify-CIB-{machine} - ci-platform-{project}-verify-CIB-finish-success - ci-platform-{project}-verify-failure # - ci-platform-{project}-verify-CIBT-start - ci-platform-{project}-verify-CIBT-{machine} - ci-platform-{project}-verify-CIBT-finish-success # # -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-manual-verified: name: 'AGL/{project}' branch: '**/**/**' wrappers: - agl-infra-wrappers: build-timeout: '{build-timeout}' builders: - shell: | set #export TRIGGERURL=$(echo ${{BUILD_URL}} | sed -e 's,-CIB-start.*,,') ssh -p 29418 agl-jobbuilder@gerrit.automotivelinux.org gerrit review ${{GERRIT_CHANGE_NUMBER}},${{GERRIT_PATCHSET_NUMBER}} --verified=0 --label ci-image-build=0 --label ci-image-boot-test=0 -n NONE --message="CI-cycle\ started.\ URL:\ ${{BUILD_URL}}" || true # - multijob: # name: CIB-{project}-start # condition: SUCCESSFUL # projects: # - name: 'ci-platform-{project}-verify-CIB-start' # current-parameters: true # abort-all-job: true # kill-phase-on: FAILURE - multijob: name: CIB-{project} condition: SUCCESSFUL projects: - name: 'ci-platform-{project}-verify-CIB-porter-nogfx' current-parameters: true abort-all-job: true kill-phase-on: FAILURE - name: 'ci-platform-{project}-verify-CIB-intel-corei7-64' current-parameters: true abort-all-job: true kill-phase-on: FAILURE - name: 'ci-platform-{project}-verify-CIB-raspberrypi3' current-parameters: true abort-all-job: true kill-phase-on: FAILURE - name: 'ci-platform-{project}-verify-CIB-dra7xx-evm' current-parameters: true abort-all-job: true kill-phase-on: FAILURE - name: 'ci-platform-{project}-verify-CIB-qemux86-64' current-parameters: true abort-all-job: true kill-phase-on: FAILURE - multijob: name: CIB-{project}-finish-success condition: SUCCESSFUL projects: - name: 'ci-platform-{project}-verify-CIB-finish-success' current-parameters: true abort-all-job: true kill-phase-on: FAILURE # - multijob: # name: 'CIBT-{project}-start' # condition: SUCCESSFUL # projects: # - name: 'ci-platform-{project}-verify-CIBT-start' # current-parameters: true # abort-all-job: true # kill-phase-on: FAILURE - multijob: name: CIBT-{project} condition: SUCCESSFUL projects: - name: 'ci-platform-{project}-verify-CIBT-porter-nogfx' current-parameters: true abort-all-job: true kill-phase-on: FAILURE - name: 'ci-platform-{project}-verify-CIBT-intel-corei7-64' current-parameters: true abort-all-job: true kill-phase-on: FAILURE - name: 'ci-platform-{project}-verify-CIBT-raspberrypi3' current-parameters: true abort-all-job: true kill-phase-on: FAILURE - name: 'ci-platform-{project}-verify-CIBT-dra7xx-evm' current-parameters: true abort-all-job: true kill-phase-on: FAILURE - name: 'ci-platform-{project}-verify-CIBT-qemux86-64' current-parameters: true abort-all-job: true kill-phase-on: FAILURE - multijob: name: 'CIBT-{project}-finish-success' condition: SUCCESSFUL projects: - name: 'ci-platform-{project}-verify-CIBT-finish-success' current-parameters: true abort-all-job: true kill-phase-on: FAILURE publishers: - trigger-parameterized-builds: - project: - ci-platform-{project}-verify-failure condition: FAILED current-parameters: true # # -verify-failure #################### - job-template: name: 'ci-platform-{project}-verify-failure' 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: | set echo "#### Verified -1 ####" ssh -p 29418 agl-jobbuilder@gerrit.automotivelinux.org gerrit review ${{GERRIT_CHANGE_NUMBER}},${{GERRIT_PATCHSET_NUMBER}} --verified -1 -n NONE --message="CI-cycle\ failed,\ Verified-1.\ URL:\ ${{BUILD_URL}}" || true # # 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-local-conf-fstypes.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 publishers: - naginator: rerun-unstable-builds: true progressive-delay-increment: 5 progressive-delay-maximum: 15 max-failed-builds: 2 regular-expression: "Unexpected termination of the channel" # # CIB-start ############ - job-template: name: 'ci-platform-{project}-verify-CIB-start' 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}' - openstack: single-use: false builders: - shell: | set #export TRIGGERURL=$(echo ${{BUILD_URL}} | sed -e 's,-CIB-start.*,,') #ssh -p 29418 agl-jobbuilder@gerrit.automotivelinux.org gerrit review ${{GERRIT_CHANGE_NUMBER}},${{GERRIT_PATCHSET_NUMBER}} --verified=0 --label ci-image-build=0 --label ci-image-boot-test=0 -n NONE --message="CI-Image-Build\ started.\ URL:\ ${{BUILD_URL}}" || true # # CIB-finish-success #################### - job-template: name: 'ci-platform-{project}-verify-CIB-finish-success' 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: | set echo "#### CIB +1 #### Verified +1 ####" ssh -p 29418 agl-jobbuilder@gerrit.automotivelinux.org gerrit review ${{GERRIT_CHANGE_NUMBER}},${{GERRIT_PATCHSET_NUMBER}} --verified +1 --label ci-image-build=+1 -n NONE --message="CI-Image-Build\ finished,\ CIB+1,\ Verified+1" || true # # CIBT-{machine} 'BOOT TEST' ############################ - job-template: name: 'ci-platform-{project}-verify-CIBT-{machine}' project-type: freestyle concurrent: true node: hwtest-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: false - 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 publishers: - naginator: rerun-unstable-builds: true progressive-delay-increment: 5 progressive-delay-maximum: 15 max-failed-builds: 2 regular-expression: "Unexpected termination of the channel" # # CIBT-start ################ - job-template: name: 'ci-platform-{project}-verify-CIBT-start' 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}' - openstack: single-use: false builders: - shell: | echo "CIBT Started" #set #ssh -p 29418 agl-jobbuilder@gerrit.automotivelinux.org gerrit review ${{GERRIT_CHANGE_NUMBER}},${{GERRIT_PATCHSET_NUMBER}} --label ci-image-boot-test=0 -n NONE --message='CI-Image-Boot-Test\ started' || true # # CIBT-finish-success ##################### - job-template: name: 'ci-platform-{project}-verify-CIBT-finish-success' 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}' - openstack: single-use: false builders: - shell: | #set echo "#### CIBT +1 ####" ssh -p 29418 agl-jobbuilder@gerrit.automotivelinux.org gerrit review ${{GERRIT_CHANGE_NUMBER}},${{GERRIT_PATCHSET_NUMBER}} --label ci-image-boot-test=+1 -n NONE --message='CI-Image-Boot-Test\ finished' || true