- job: name: tcwg-update-snapshots_ref project-type: matrix defaults: global properties: - authorization: anonymous: - job-read - job-extended-read linaro: - job-build - job-cancel - build-discarder: days-to-keep: 30 num-to-keep: 30 parameters: - bool: name: regenerate default: true description: 'Regenerate snapshots' - string: name: scripts_branch default: refs/remotes/origin/master description: 'Scripts revision to use' disabled: false node: tcwg-x86_64-dev-01 retry-count: 3 display-name: 'TCWG CCC Update reference ABE snapshots on TCWG machines' triggers: - timed: '@weekly' scm: - git: url: https://git-us.linaro.org/toolchain/jenkins-scripts.git refspec: +refs/changes/*:refs/remotes/changes/* branches: - ${scripts_branch} skip-tag: true shallow-clone: true wipe-workspace: true axes: - axis: type: slave name: label values: - tcwg-x86_64-dev-01 execution-strategy: sequential: false wrappers: - timeout: timeout: 60 - timestamps - ssh-agent-credentials: # tcwg-buildslave user id users: - 'e0958a95-204f-4c14-a66c-5e2be6c5d50a' - build-name: name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}' builders: - shell: | #!/bin/bash set -e set -x if $regenerate; then nogen_opt="" else nogen_opt="-r" fi case "$label" in tcwg-x86_64-dev-01) master_machine=dev-01.tcwglab machines="dev-02.tcwglab $(for i in `seq 1 8`; do echo build-0$i.tcwglab; done) apm-01.tcwglab apm-02.tcwglab test-armv8-01.tcwglab test-armv8-02.tcwglab tcwg-tx1-01.tcwglab tcwg-tx1-02.tcwglab" ;; *) echo "ERROR: Unknown host: $label"; exit 1 ;; esac ./tcwg-update-snapshots_ref.sh -v $nogen_opt $master_machine if $regenerate; then # Distribute Foundation Model to the builders so that containers # running there can access Foundation Model via a bind-mount for # bare-metal testing. tar xf $HOME/public_html/infrastructure/FM000-KT-00035-r9p5-41rel0.tgz -C $HOME/snapshots-ref-new chmod -R ugo+rx $HOME/snapshots-ref-new/Foundation_Platformpkg # Clone the Linux kernel if not already # present. Subsequent calls will update it. if [ ! -d $HOME/snapshots-ref-new/linux.git ]; then git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git $HOME/snapshots-ref-new/linux.git fi fi ./tcwg-update-snapshots_ref.sh -v -r $master_machine $machines publishers: - email: recipients: 'christophe.lyon@linaro.org maxim.kuvyrkov@linaro.org'