aboutsummaryrefslogtreecommitdiffstats
path: root/OLD
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2024-05-22 20:54:08 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2024-05-22 23:36:10 +0200
commit3c9a45b3032b66aaba75e5192287af9414e483c8 (patch)
treeb6094dafebc96c8a10f7d5a9eafa8dc6ad79309f /OLD
parent04952b6c0bf9865cdde4429f262e4da3cb476e15 (diff)
Rework for new image names and drop older releases.
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Change-Id: I0323fd9053ed3679772715a0080a1990209a563a
Diffstat (limited to 'OLD')
-rw-r--r--OLD/ci-apps-verify/.gitignore5
-rw-r--r--OLD/ci-apps-verify/app-projects.yaml.inc3
-rwxr-xr-xOLD/ci-apps-verify/ci-apps-jjb.local.sh38
-rw-r--r--OLD/ci-apps-verify/ci-apps-jjb.yaml854
-rwxr-xr-xOLD/ci-apps-verify/update-app-projects-yaml.sh2
-rw-r--r--OLD/test-lava/test-lava.yaml83
6 files changed, 985 insertions, 0 deletions
diff --git a/OLD/ci-apps-verify/.gitignore b/OLD/ci-apps-verify/.gitignore
new file mode 100644
index 00000000..748bbba1
--- /dev/null
+++ b/OLD/ci-apps-verify/.gitignore
@@ -0,0 +1,5 @@
+mediaplayer
+controls
+poky-agl-*.sh
+env*
+UPLOAD
diff --git a/OLD/ci-apps-verify/app-projects.yaml.inc b/OLD/ci-apps-verify/app-projects.yaml.inc
new file mode 100644
index 00000000..84ecae07
--- /dev/null
+++ b/OLD/ci-apps-verify/app-projects.yaml.inc
@@ -0,0 +1,3 @@
+- agl-service-audiomixer
+- agl-service-hvac
+- agl-service-radio
diff --git a/OLD/ci-apps-verify/ci-apps-jjb.local.sh b/OLD/ci-apps-verify/ci-apps-jjb.local.sh
new file mode 100755
index 00000000..404ce61e
--- /dev/null
+++ b/OLD/ci-apps-verify/ci-apps-jjb.local.sh
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+set -x
+export AGLBRANCH=master
+export GERRIT_REFSPEC="refs/changes/46/25046/1"
+export GERRIT_PROJECT="apps/agl-service-bluetooth"
+export GERRIT_CHANGE_NUMBER="25046"
+export GERRIT_PATCHSET_NUMBER="1"
+export GERRIT_PATCHSET_REVISION="cb8db512e462af970735aa86781ca2cfa58d0760"
+export GERRIT_HOST="gerrit.automotivelinux.org"
+export GERRIT_PORT="29418"
+
+export -p > env.save
+
+THISPWD=$(pwd)
+for TARGETARCH in aarch64 arm x86-64; do
+pushd $THISPWD
+
+for i in `compgen -e | grep -v ^PATH`; do
+ unset $i
+done
+
+source env.save
+
+rm -rf ~/agl-sdk || true
+
+. ../common/include-apps-header.sh
+. ../common/include-apps-fetch-install-sdk.sh
+. ../common/include-apps-build-app.sh
+. ../common/include-apps-prepare-upload-folder.sh
+# do not really upload
+#. ../common/include-apps-rsync-download-changeid.sh
+
+popd
+
+ls -R UPLOAD
+
+done \ No newline at end of file
diff --git a/OLD/ci-apps-verify/ci-apps-jjb.yaml b/OLD/ci-apps-verify/ci-apps-jjb.yaml
new file mode 100644
index 00000000..863ca701
--- /dev/null
+++ b/OLD/ci-apps-verify/ci-apps-jjb.yaml
@@ -0,0 +1,854 @@
+---
+- project:
+ name: ci-apps-AGL
+ aglbranch:
+ - master
+ architecture:
+ - aarch64
+ - x86-64
+ - arm
+ project:
+ !include: app-projects.yaml.inc
+
+ jobs:
+ - ci-apps-{project}-verify-{aglbranch}
+ - ci-apps-{project}-verify-{aglbranch}-CIB-{architecture}
+ - ci-apps-{project}-verify-{aglbranch}-CIB-finish-success
+ - ci-apps-{project}-verify-{aglbranch}-CIBT-{architecture}
+ - ci-apps-{project}-verify-{aglbranch}-CIBT-finish-success
+ - ci-apps-{project}-verify-{aglbranch}-signal-gracetime
+ - ci-apps-{project}-verify-{aglbranch}-failure
+ - ci-apps-{project}-remove-{aglbranch}-artifacts
+ - ci-apps-{project}-merge-{aglbranch}
+ - ci-apps-{project}-merge-{aglbranch}-{architecture}
+ - ci-apps-{project}-merge-{aglbranch}-finish-success
+ # currently unused templates
+ # - ci-apps-{project}-verify-CIB-start
+ # - ci-apps-{project}-verify-CIBT-start
+
+
+################################################################################################################################################################
+################################################################################################################################################################
+
+################# VERIFY #################
+
+################################################################################
+# ci-apps-{project}-verify = trigger from gerrit and control job
+################################################################################
+- job-template:
+ name: 'ci-apps-{project}-verify-{aglbranch}'
+ project-type: multijob
+ concurrent: true
+ node: control-slave
+ parameters:
+ - string:
+ name: GERRIT_PROJECT
+ default: 'apps/{project}'
+ description: "Project to build"
+ - string:
+ name: GERRIT_BRANCH
+ default: '{aglbranch}'
+ description: "branch to build"
+ - string:
+ name: GERRIT_REFSPEC
+ default: 'refs/heads/{aglbranch}'
+ 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: AGLBRANCH
+ default: '{aglbranch}'
+ description: "AGL release branch to use"
+ build-discarder:
+ days-to-keep: 30
+ artifact-days-to-keep: -1
+ artifact-num-to-keep: 5
+ triggers:
+ - gerrit-trigger-patch-submitted-manual-verified:
+ name: 'apps/{project}'
+ branch: '{aglbranch}'
+ silent: 'true'
+ wrappers:
+ - agl-infra-wrappers:
+ build-timeout: '{build-timeout}'
+ builders:
+ - shell: |
+ #set
+ #set -x
+ export TRIGGERURL=$(echo ${{BUILD_URL}} | sed -e 's,-CIB-start.*,,')
+ echo \$TRIGGERURL
+ ssh -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -p 29418 agl-jobbuilder@gerrit.automotivelinux.org gerrit review ${{GERRIT_CHANGE_NUMBER}},${{GERRIT_PATCHSET_NUMBER}} --verified=0 -n NONE --message="CI-cycle\ started.\ URL:\ ${{BUILD_URL}}" || true
+ # - multijob:
+ # name: CIB-{project}-start
+ # condition: SUCCESSFUL
+ # projects:
+ # - name: 'ci-apps-{project}-verify-CIB-start'
+ # current-parameters: true
+ # abort-all-job: true
+ # kill-phase-on: FAILURE
+ - multijob:
+ name: CIB-{project}
+ condition: SUCCESSFUL
+ projects:
+ - name: 'ci-apps-{project}-verify-{aglbranch}-CIB-arm'
+ current-parameters: true
+ #abort-all-job: true
+ kill-phase-on: FAILURE
+ predefined-parameters: AGLBRANCH={aglbranch}
+ - name: 'ci-apps-{project}-verify-{aglbranch}-CIB-aarch64'
+ current-parameters: true
+ #abort-all-job: true
+ kill-phase-on: FAILURE
+ predefined-parameters: AGLBRANCH={aglbranch}
+ - name: 'ci-apps-{project}-verify-{aglbranch}-CIB-x86-64'
+ current-parameters: true
+ #abort-all-job: true
+ kill-phase-on: FAILURE
+ predefined-parameters: AGLBRANCH={aglbranch}
+ - multijob:
+ name: CIB-{project}-{aglbranch}-finish-success
+ condition: SUCCESSFUL
+ projects:
+ - name: 'ci-apps-{project}-verify-{aglbranch}-CIB-finish-success'
+ current-parameters: true
+ abort-all-job: true
+ kill-phase-on: FAILURE
+ - multijob:
+ name: CIBT-{project}
+ condition: SUCCESSFUL
+ projects:
+ - name: 'ci-apps-{project}-verify-{aglbranch}-CIBT-x86-64'
+ current-parameters: true
+ #abort-all-job: true
+ kill-phase-on: FAILURE
+ predefined-parameters: AGLBRANCH={aglbranch}
+ - multijob:
+ name: CIBT-{project}-finish-success
+ condition: SUCCESSFUL
+ projects:
+ - name: 'ci-apps-{project}-verify-{aglbranch}-CIBT-finish-success'
+ current-parameters: true
+ abort-all-job: true
+ kill-phase-on: FAILURE
+
+
+
+################################################################################
+# ci-apps-{project}-verify-CIB-{architecture} = build job per arch
+################################################################################
+- job-template:
+ name: 'ci-apps-{project}-verify-{aglbranch}-CIB-{architecture}'
+ project-type: freestyle
+ concurrent: true
+ node: agl-test-slave
+ parameters:
+ - string:
+ name: GERRIT_PROJECT
+ default: 'apps/{project}'
+ description: "Project to build"
+ - string:
+ name: GERRIT_BRANCH
+ default: '{aglbranch}'
+ description: "branch to build"
+ - string:
+ name: GERRIT_REFSPEC
+ default: refs/heads/{aglbranch}
+ description: "refspec to build"
+ - string:
+ name: GERRIT_CHANGE_NUMBER
+ default: ""
+ description: "change # to build"
+ - string:
+ name: GERRIT_PATCHSET_NUMBER
+ default: ""
+ description: "patchset # to build"
+ - string:
+ name: TARGETARCH
+ default: '{architecture}'
+ description: "Machine to build"
+ - string:
+ name: AGLBRANCH
+ default: '{aglbranch}'
+ description: "AGL release branch to use"
+
+ 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:
+ - text:
+ credential-id: BAY_KCIAPI_TOKEN
+ variable: BAY_KCIAPI_TOKEN
+ - text:
+ credential-id: AGL_KCIAPI_TOKEN
+ variable: AGL_KCIAPI_TOKEN
+
+ builders:
+ - shell:
+ # including from ../common into ci-apps-{project}-verify-{aglbranch}-CIB-{architecture}
+ !include-raw-escape:
+ - ../common/include-apps-header.sh
+ - ../common/include-apps-fetch-install-sdk.sh
+ - ../common/include-apps-build-app.sh
+ - ../common/include-apps-prepare-upload-folder.sh
+ - ../common/include-apps-rsync-download-changeid.sh
+ - conditional-step:
+ condition-kind: always
+ steps:
+ - shell:
+ !include-raw-escape:
+ - ../common/include-agl-get-cost.sh
+
+
+################################################################################
+# ci-apps-{project}-verify-CIB-finish-succcess = success, msg to gerrit
+################################################################################
+- job-template:
+ name: 'ci-apps-{project}-verify-{aglbranch}-CIB-finish-success'
+ project-type: freestyle
+ concurrent: true
+ node: control-slave
+ parameters:
+ - string:
+ name: GERRIT_PROJECT
+ default: 'apps/{project}'
+ description: "Project to build"
+ - string:
+ name: GERRIT_BRANCH
+ default: '{aglbranch}'
+ description: "branch to build"
+ - string:
+ name: GERRIT_REFSPEC
+ default: 'refs/heads/{aglbranch}'
+ 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: AGLBRANCH
+ default: '{aglbranch}'
+ description: "AGL release branch to use"
+ 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 -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -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.\ Artifacts\ available\ at\ https://download.automotivelinux.org/AGL/upload/ci/${{GERRIT_CHANGE_NUMBER}}/${{GERRIT_PATCHSET_NUMBER}}/\ ." || true
+ publishers:
+ - trigger-parameterized-builds:
+ - project:
+ - ci-apps-{project}-verify-{aglbranch}-signal-gracetime
+ current-parameters: true
+ condition: SUCCESS
+
+################################################################################
+# ci-apps-{project}-gracetime = 24h grace msg to gerrit
+################################################################################
+- job-template:
+ name: 'ci-apps-{project}-verify-{aglbranch}-signal-gracetime'
+ project-type: freestyle
+ concurrent: true
+ node: control-slave
+ quiet-period: 3600
+ parameters:
+ - string:
+ name: GERRIT_PROJECT
+ default: 'apps/{project}'
+ description: "Project to build"
+ - string:
+ name: GERRIT_BRANCH
+ default: '{aglbranch}'
+ description: "branch to build"
+ - string:
+ name: GERRIT_REFSPEC
+ default: 'refs/heads/{aglbranch}'
+ 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: AGLBRANCH
+ default: '{aglbranch}'
+ description: "AGL release branch to use"
+ 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 -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -p 29418 agl-jobbuilder@gerrit.automotivelinux.org gerrit review ${{GERRIT_CHANGE_NUMBER}},${{GERRIT_PATCHSET_NUMBER}} --verified +1 --label ci-gracetime=+1 --label ci-image-build=+1 -n NONE || true
+
+
+
+
+################# Unused templates ##################
+
+
+################################################################################
+# ci-apps-{project}-verify-failure = message back to gerrit on failure
+################################################################################
+- job-template:
+ name: 'ci-apps-{project}-verify-{aglbranch}-failure'
+ project-type: freestyle
+ concurrent: true
+ node: control-slave
+ parameters:
+ - string:
+ name: GERRIT_PROJECT
+ default: 'apps/{project}'
+ description: "Project to build"
+ - string:
+ name: GERRIT_BRANCH
+ default: '{aglbranch}'
+ description: "branch to build"
+ - string:
+ name: GERRIT_REFSPEC
+ default: refs/heads/{aglbranch}
+ 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 -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -p 29418 agl-jobbuilder@gerrit.automotivelinux.org gerrit review ${{GERRIT_CHANGE_NUMBER}},${{GERRIT_PATCHSET_NUMBER}} --verified -1 -n NONE --message="CI-cycle\ failed.\ URL:\ ${{BUILD_URL}}" || true
+ ssh -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -p 29418 agl-jobbuilder@gerrit.automotivelinux.org gerrit review ${{GERRIT_CHANGE_NUMBER}},${{GERRIT_PATCHSET_NUMBER}} -n NONE --message="CI-cycle\ failed.\ URL:\ ${{BUILD_URL}}" || true
+
+
+
+################################################################################################################################################################
+################################################################################################################################################################
+
+################# REMOVE #################
+
+
+#####################################################
+# -remove-artifacts = merge/abandon, remove artifacts
+#####################################################
+- job-template:
+ name: 'ci-apps-{project}-remove-{aglbranch}-artifacts'
+ project-type: freestyle
+ concurrent: true
+ node: control-slave
+ parameters:
+ - string:
+ name: GERRIT_PROJECT
+ default: 'apps/{project}'
+ description: "Project to build"
+ - string:
+ name: GERRIT_BRANCH
+ default: '{aglbranch}'
+ description: "branch to build"
+ - string:
+ name: GERRIT_REFSPEC
+ default: refs/heads/{aglbranch}
+ description: "refspec to build"
+ - string:
+ name: GERRIT_CHANGE_NUMBER
+ default: "9551"
+ 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
+ triggers:
+ - gerrit-trigger-silent-patch-merged-abandoned:
+ name: 'apps/{project}'
+ branch: '{aglbranch}'
+ silent: 'true'
+ builders:
+ - shell:
+ !include-raw-escape:
+ - ../common/include-agl-remove-artifacts-changeid.sh
+
+
+
+
+
+################################################################################################################################################################
+################################################################################################################################################################
+
+################# MERGE #################
+
+################################################################################
+# ci-apps-{project}-merge = trigger from gerrit and control job
+################################################################################
+- job-template:
+ name: 'ci-apps-{project}-merge-{aglbranch}'
+ project-type: multijob
+ concurrent: true
+ node: control-slave
+ parameters:
+ - string:
+ name: GERRIT_PROJECT
+ default: 'apps/{project}'
+ description: "Project to build"
+ - string:
+ name: GERRIT_BRANCH
+ default: '{aglbranch}'
+ description: "branch to build"
+ - string:
+ name: GERRIT_REFSPEC
+ default: 'refs/heads/{aglbranch}'
+ 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: AGLBRANCH
+ default: '{aglbranch}'
+ description: "AGL release branch to use"
+ build-discarder:
+ days-to-keep: 30
+ artifact-days-to-keep: -1
+ artifact-num-to-keep: 5
+ #triggers:
+ # - gerrit-trigger-silent-patch-merged:
+ # name: 'apps/{project}'
+ # branch: '{aglbranch}'
+ wrappers:
+ - agl-infra-wrappers:
+ build-timeout: '{build-timeout}'
+ builders:
+ - multijob:
+ name: CI-merge-{project}
+ condition: SUCCESSFUL
+ projects:
+ - name: 'ci-apps-{project}-merge-{aglbranch}-arm'
+ current-parameters: true
+ #abort-all-job: true
+ kill-phase-on: FAILURE
+ predefined-parameters: AGLBRANCH={aglbranch}
+ - name: 'ci-apps-{project}-merge-{aglbranch}-aarch64'
+ current-parameters: true
+ #abort-all-job: true
+ kill-phase-on: FAILURE
+ predefined-parameters: AGLBRANCH={aglbranch}
+ - name: 'ci-apps-{project}-merge-{aglbranch}-x86-64'
+ current-parameters: true
+ #abort-all-job: true
+ kill-phase-on: FAILURE
+ predefined-parameters: AGLBRANCH={aglbranch}
+ - multijob:
+ name: CIB-{project}-{aglbranch}-finish-success
+ condition: SUCCESSFUL
+ projects:
+ - name: 'ci-apps-{project}-merge-{aglbranch}-finish-success'
+ current-parameters: true
+ abort-all-job: true
+ kill-phase-on: FAILURE
+
+
+################################################################################
+# ci-apps-{project}-merge-CIB-{architecture} = build job per arch
+################################################################################
+- job-template:
+ name: 'ci-apps-{project}-merge-{aglbranch}-{architecture}'
+ project-type: freestyle
+ concurrent: true
+ node: agl-test-slave
+ parameters:
+ - string:
+ name: GERRIT_PROJECT
+ default: 'apps/{project}'
+ description: "Project to build"
+ - string:
+ name: GERRIT_BRANCH
+ default: '{aglbranch}'
+ description: "branch to build"
+ - string:
+ name: GERRIT_REFSPEC
+ default: refs/heads/{aglbranch}
+ description: "refspec to build"
+ - string:
+ name: GERRIT_CHANGE_NUMBER
+ default: ""
+ description: "change # to build"
+ - string:
+ name: GERRIT_PATCHSET_NUMBER
+ default: ""
+ description: "patchset # to build"
+ - string:
+ name: TARGETARCH
+ default: '{architecture}'
+ description: "Machine to build"
+ - string:
+ name: AGLBRANCH
+ default: '{aglbranch}'
+ description: "AGL release branch to use"
+
+ 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:
+ # including from ../common into ci-apps-{project}-merge-{aglbranch}-CIB-{architecture}
+ !include-raw-escape:
+ - ../common/include-agl-skipmaster.sh
+ - ../common/include-apps-header.sh
+ - ../common/include-apps-fetch-install-sdk.sh
+ - ../common/include-apps-build-app.sh
+ - ../common/include-apps-prepare-upload-folder-merged.sh
+ - ../common/include-apps-build-app-by-recipe.sh
+ #- ../common/include-apps-rsync-download-apprepo.sh
+
+
+################################################################################
+# ci-apps-{project}-merge-finish-succcess = success, msg to gerrit
+################################################################################
+- job-template:
+ name: 'ci-apps-{project}-merge-{aglbranch}-finish-success'
+ project-type: freestyle
+ concurrent: true
+ node: control-slave
+ parameters:
+ - string:
+ name: GERRIT_PROJECT
+ default: 'apps/{project}'
+ description: "Project to build"
+ - string:
+ name: GERRIT_BRANCH
+ default: '{aglbranch}'
+ description: "branch to build"
+ - string:
+ name: GERRIT_REFSPEC
+ default: 'refs/heads/{aglbranch}'
+ 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: AGLBRANCH
+ default: '{aglbranch}'
+ description: "AGL release branch to use"
+ 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: |
+ ssh -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -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="Merge\ finished,\ Artifacts\ available\ at\ https://download.automotivelinux.org/AGL/apps/{project}/\ ." || true
+
+
+
+
+
+
+
+
+
+
+
+
+
+################################################################################################################################################################
+# ATTIC ###############################################################################################################################################################
+################################################################################################################################################################
+################################################################################################################################################################
+
+
+#
+# CIB-start (unused)
+# ###########
+- job-template:
+ name: 'ci-apps-{project}-verify-CIB-start'
+ project-type: freestyle
+ concurrent: true
+ node: control-slave
+ parameters:
+ - string:
+ name: GERRIT_PROJECT
+ default: 'apps/{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 -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -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
+ ssh -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -p 29418 agl-jobbuilder@gerrit.automotivelinux.org gerrit review ${{GERRIT_CHANGE_NUMBER}},${{GERRIT_PATCHSET_NUMBER}} --verified=0 -n NONE --message="CI-Image-Build\ started.\ URL:\ \$TRIGGERURL" || true
+
+
+#
+# CIBT-{architecture} 'BOOT TEST'
+# ###########################
+
+- job-template:
+ name: 'ci-apps-{project}-verify-{aglbranch}-CIBT-{architecture}'
+ project-type: freestyle
+ concurrent: true
+ node: hwtest-slave
+
+ parameters:
+ - string:
+ name: GERRIT_PROJECT
+ default: 'apps/{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: TARGETARCH
+ default: '{architecture}'
+ description: "Architecture 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
+ - username-password-separated:
+ credential-id: agl_main_lava_instance
+ username: LAB_AGL_USER
+ password: LAB_AGL_TOKEN
+ - text:
+ credential-id: BAY_KCIAPI_TOKEN
+ variable: BAY_KCIAPI_TOKEN
+ - text:
+ credential-id: AGL_KCIAPI_TOKEN
+ variable: AGL_KCIAPI_TOKEN
+
+ builders:
+ - shell:
+ # including from ../common into ci-apps-{project}-verify-CIBT-{architecture}
+ !include-raw-escape:
+ - ../common/include-agl-skipmaster.sh
+ - ../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-lava-labs-prepare.sh
+ #- ../common/include-agl-app-run-test-short.sh
+ #- ../common/include-agl-lava-jobs-submit.sh
+ - conditional-step:
+ condition-kind: always
+ steps:
+ - shell:
+ !include-raw-escape:
+ - ../common/include-agl-get-cost.sh
+
+#
+# CIBT-start
+# ###############
+
+- job-template:
+ name: 'ci-apps-{project}-verify-CIBT-start'
+ project-type: freestyle
+ concurrent: true
+ node: control-slave
+
+ parameters:
+ - string:
+ name: GERRIT_PROJECT
+ default: 'apps/{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 -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -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-apps-{project}-verify-{aglbranch}-CIBT-finish-success'
+ project-type: freestyle
+ concurrent: true
+ node: control-slave
+
+ parameters:
+ - string:
+ name: GERRIT_PROJECT
+ default: 'apps/{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 -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -p 29418 agl-jobbuilder@gerrit.automotivelinux.org gerrit review ${{GERRIT_CHANGE_NUMBER}},${{GERRIT_PATCHSET_NUMBER}} --verified +1 --label ci-image-build=+1 --label ci-image-boot-test=+1 -n NONE --message='CI-Image-Boot-Test\ finished' || true
+
+
+
+
diff --git a/OLD/ci-apps-verify/update-app-projects-yaml.sh b/OLD/ci-apps-verify/update-app-projects-yaml.sh
new file mode 100755
index 00000000..8a645b9c
--- /dev/null
+++ b/OLD/ci-apps-verify/update-app-projects-yaml.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+agl-gerrit-lsprojects-apps | sed -e "s'apps/'- 'g" > app-projects.yaml.inc
diff --git a/OLD/test-lava/test-lava.yaml b/OLD/test-lava/test-lava.yaml
new file mode 100644
index 00000000..31935843
--- /dev/null
+++ b/OLD/test-lava/test-lava.yaml
@@ -0,0 +1,83 @@
+---
+- project:
+ name: test-lava
+ jobs:
+ - test-lava
+
+- job-template:
+ name: 'test-lava'
+ project-type: matrix
+ concurrent: false
+ node: master
+
+ parameters:
+ - string:
+ name: GERRIT_PROJECT
+ default: AGL/meta-agl
+ 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: "refspec to build"
+ - string:
+ name: GERRIT_PATCHSET_NUMBER
+ default: "2"
+ description: "refspec to build"
+ axes:
+ - axis:
+ type: user-defined
+ name: MACHINE
+ values:
+ - raspberrypi3
+ - axis:
+ type: slave
+ name: label
+ values:
+ - agl-test-slave
+
+ build-discarder:
+ days-to-keep: 30
+ num-to-keep: 2
+ artifact-days-to-keep: -1
+ artifact-num-to-keep: 5
+
+ # triggers:
+ # - gerrit-trigger-patch-submitted-silent:
+ # name: 'AGL/AGL-repo'
+ # branch: 'refs/tags/chinook/**'
+
+ wrappers:
+ - agl-infra-wrappers:
+ build-timeout: '{build-timeout}'
+ - credentials-binding:
+ - username-password-separated:
+ credential-id: agl_main_lava_instance
+ username: AGLLAVAUSER
+ password: AGLLAVATOKEN
+ - openstack:
+ single-use: False
+
+ 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
+ - ../common/include-agl-lava-labs-prepare.sh
+ - ../common/include-agl-run-test-short.sh
+ - ../common/include-agl-lava-jobs-submit.sh