diff options
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/common/include-agl-limit-parallelism.sh | 4 | ||||
-rw-r--r-- | jjb/common/include-agl-run-test-snapshot.sh | 107 | ||||
-rw-r--r-- | jjb/release-jjb-chinook-snapshot/include-release-jjb-chinook-snapshot-rsync.sh | 2 | ||||
-rw-r--r-- | jjb/test-lava/test-lava.yaml | 61 |
4 files changed, 171 insertions, 3 deletions
diff --git a/jjb/common/include-agl-limit-parallelism.sh b/jjb/common/include-agl-limit-parallelism.sh index fc42c6ff..d717ac38 100644 --- a/jjb/common/include-agl-limit-parallelism.sh +++ b/jjb/common/include-agl-limit-parallelism.sh @@ -2,8 +2,8 @@ # Throttle threads to 6 cat << EOF >> conf/auto.conf -BB_NUMBER_THREADS = "6" +BB_NUMBER_THREADS = "5" BB_NUMBER_PARSE_THREADS = "8" -PARALLEL_MAKE = "-j6" +PARALLEL_MAKE = "-j5" EOF diff --git a/jjb/common/include-agl-run-test-snapshot.sh b/jjb/common/include-agl-run-test-snapshot.sh new file mode 100644 index 00000000..b753708f --- /dev/null +++ b/jjb/common/include-agl-run-test-snapshot.sh @@ -0,0 +1,107 @@ +# (c) 2016 Jan-Simon Moeller dl9pf(at)gmx.de +# License GPLv2 + +################################################################################ +## Run SHORT CI test +################################################################################ + +# test currently only for porter, rest WIP +echo "## ${MACHINE} ##" + + +echo "default keyring config" + +mkdir -p ~/.local/share/python_keyring/ + +cat <<EOF > ~/.local/share/python_keyring/keyringrc.cfg +[backend] +default-keyring=keyring.backends.file.PlaintextKeyring +EOF + +cat <<EOF > ~/.local/token +$AGLLAVATOKEN +EOF + +lava-tool auth-add --token-file ~/.local/token https://agl-jenkins-user@porter.automotivelinux.org + +cat ~/.local/token + +cat <<EOF > testjob.yaml +# Your first LAVA JOB definition for a porter board +device_type: renesas-porter-uboot +job_name: renesas-porter-uboot + +protocols: + lava-xnbd: + port: auto + +timeouts: + job: + minutes: 15 + action: + minutes: 5 + connection: + minutes: 2 +priority: medium +visibility: public + +# ACTION_BLOCK +actions: +- deploy: + to: nbd + dtb: + url: 'https://download.automotivelinux.org/AGL/snapshots/master/latest/porter-nogfx/deploy/images/porter/uImage-r8a7791-porter.dtb' + kernel: + url: 'https://download.automotivelinux.org/AGL/snapshots/master/latest/porter-nogfx/deploy/images/porter/uImage' + initramfs: + url: 'https://download.automotivelinux.org/AGL/snapshots/master/latest/porter-nogfx/deploy/images/porter/initramfs-netboot-image-porter.ext4.gz.u-boot' + allow_modify: false + nbdroot: + url: 'https://download.automotivelinux.org/AGL/snapshots/master/latest/porter-nogfx/deploy/images/porter/core-image-minimal-porter.ext4' + os: debian + failure_retry: 2 + + +# BOOT_BLOCK +- boot: + method: u-boot + commands: nbd + type: bootm + prompts: ["root@porter:~"] + auto_login: + login_prompt: "login:" + username: root + +EOF + +#rm ~/.local/token + +lava-tool submit-job https://agl-jenkins-user@porter.automotivelinux.org testjob.yaml | tee .myjob + +MYJOB=`cat .myjob | sed -e "s#submitted as job id: ##g"` + +echo $MYJOB + +lava-tool job-status https://agl-jenkins-user@porter.automotivelinux.org $MYJOB +lava-tool job-details https://agl-jenkins-user@porter.automotivelinux.org $MYJOB +lava-tool job-output https://agl-jenkins-user@porter.automotivelinux.org $MYJOB +sleep 10 +lava-tool job-status https://agl-jenkins-user@porter.automotivelinux.org $MYJOB +sleep 10 +lava-tool job-status https://agl-jenkins-user@porter.automotivelinux.org $MYJOB +sleep 10 +lava-tool job-status https://agl-jenkins-user@porter.automotivelinux.org $MYJOB +sleep 10 +lava-tool job-status https://agl-jenkins-user@porter.automotivelinux.org $MYJOB +sleep 10 +lava-tool job-status https://agl-jenkins-user@porter.automotivelinux.org $MYJOB +sleep 10 +lava-tool job-status https://agl-jenkins-user@porter.automotivelinux.org $MYJOB +sleep 10 +lava-tool job-status https://agl-jenkins-user@porter.automotivelinux.org $MYJOB +sleep 10 +lava-tool job-details https://agl-jenkins-user@porter.automotivelinux.org $MYJOB + + + +# setup
\ No newline at end of file diff --git a/jjb/release-jjb-chinook-snapshot/include-release-jjb-chinook-snapshot-rsync.sh b/jjb/release-jjb-chinook-snapshot/include-release-jjb-chinook-snapshot-rsync.sh index 4d5da74f..2958476b 100644 --- a/jjb/release-jjb-chinook-snapshot/include-release-jjb-chinook-snapshot-rsync.sh +++ b/jjb/release-jjb-chinook-snapshot/include-release-jjb-chinook-snapshot-rsync.sh @@ -46,7 +46,7 @@ ls -alhR $DEST echo "would do rsync -avr -e \"ssh -o StrictHostKeyChecking=no\" $RSYNCSRC $RSYNCDST " if test x"yes" = x"$UPLOAD" ; then - rsync -avr --delete -e "ssh -o StrictHostKeyChecking=no" $RSYNCSRC $RSYNCDST + rsync -avr -e "ssh -o StrictHostKeyChecking=no" $RSYNCSRC $RSYNCDST fi exit 0
\ No newline at end of file diff --git a/jjb/test-lava/test-lava.yaml b/jjb/test-lava/test-lava.yaml new file mode 100644 index 00000000..c83d5ff7 --- /dev/null +++ b/jjb/test-lava/test-lava.yaml @@ -0,0 +1,61 @@ +- 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/AGL-repo + 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" + 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: 40 + 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 + + builders: + - shell: + !include-raw-escape: + - ../common/include-agl-run-test-snapshot.sh + |