diff options
Diffstat (limited to 'tcwg-gdb.yaml')
-rw-r--r-- | tcwg-gdb.yaml | 195 |
1 files changed, 0 insertions, 195 deletions
diff --git a/tcwg-gdb.yaml b/tcwg-gdb.yaml deleted file mode 100644 index d49e2e460f..0000000000 --- a/tcwg-gdb.yaml +++ /dev/null @@ -1,195 +0,0 @@ -- job: - name: tcwg-gdb - 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: 100 - parameters: - - string: - name: gdb_rev - default: 'refs/remotes/origin/master' - description: 'gdb revision to build' - - string: - name: target_list - default: 'tcwg-x86_64-cam tcwg-apm_64-build tcwg-tk1_32-build' - description: 'List of targets to test' - - string: - name: bfd_list - default: '--enable-64-bit-bfd=no --enable-64-bit-bfd=yes' - description: 'Type of BFD to enable: --enable-64-bit-bfd=yes --enable-64-bit-bfd=no' - - string: - name: scripts_branch - default: master - description: 'Jenkins-scripts branch to use' - - bool: - name: dont_fail - default: false - description: 'Do not fail the build' - - string: - name: log_name - default: '${JOB_NAME}-${BUILD_NUMBER}/${builder_type}.$target.$bfd' - description: 'Logname directory on logserver' - - string: - name: log_server - default: dev-01.tcwglab:/home/tcwg-buildslave/logs - description: 'Log_Server' - - string: - name: build_container_distro - default: 'lts_1' - description: 'Distro to use on the builder with non-default container type: bionic, focal ...' - disabled: false - node: tcwg-x86_64-dev-02 - retry-count: 3 - concurrent: true - display-name: 'TCWG BBB GDB' - scm: - - git: - url: https://git.linaro.org/toolchain/binutils-gdb.git - refspec: +refs/heads/master:refs/remotes/origin/master - branches: - - ${gdb_rev} - skip-tag: true - shallow-clone: false - reference-repo: /home/tcwg-buildslave/snapshots-ref/binutils-gdb.git - wipe-workspace: false - clean: - before: true - axes: - - axis: - type: slave - name: label - values: - - tcwg-x86_64-cam - - tcwg-apm_64-build - - tcwg-tk1_32-build - - axis: - type: dynamic - name: bfd - values: - - bfd_list - - axis: - type: dynamic - name: target - values: - - target_list - execution-strategy: - combination-filter: | - ((label==~/tcwg-x86_.*/) && ! (target==~/tcwg-.*/)) || (target==label) - sequential: false - wrappers: - - timeout: - timeout: 600 - - timestamps - - ssh-agent-credentials: - # tcwg-buildslave user id - users: - - 'e0958a95-204f-4c14-a66c-5e2be6c5d50a' - - build-name: - name: '#${BUILD_NUMBER}-${ENV,var="gdb_rev"}' - builders: - - shell: | - #!/bin/bash - - set -ex - - rm -rf jenkins-scripts - git clone -b $scripts_branch --depth 1 https://git.linaro.org/toolchain/jenkins-scripts - - bash -x ./jenkins-scripts/start-container-docker.sh --weight 2 --label $label --node $NODE_NAME --task build --prefix build_ --distro $build_container_distro > build-container.sh - . ./build-container.sh - BUILD_SHELL="build_container_exec bash" - $BUILD_SHELL -c "echo \"Build session is up; ulimit config:\"; ulimit -a" - - builder_type=$(print_type_for_label $label) - - # Adjust the core file size in ulimit for GDB core file tests - ${BUILD_SHELL} -c "ulimit -c unlimited" - - # Remove container on exit - trap "build_container_cleanup" EXIT HUP INT QUIT TRAP KILL PIPE TERM - - rm -rf build-$target || true - mkdir -p build-$target - cd build-$target - result=0 - jobs=$(nproc --all) - echo BUILD STARTED $(date) - echo WORKSPACE: ${WORKSPACE} - - # Build our own version of dejagnu, using abe to try to - # avoid problems with the system's version - ${BUILD_SHELL} -c "git clone https://git.linaro.org/toolchain/abe.git" - ${BUILD_SHELL} -c "cd abe && ./configure --with-git-reference-dir=/home/tcwg-buildslave/snapshots-ref" - ${BUILD_SHELL} -c "cd abe && ./abe.sh --build dejagnu" - djpath=$(${BUILD_SHELL} -c "ls -d $PWD/abe/./builds/hosttools/*/bin") - [ -x $djpath/runtest ] || (echo "DejaGnu not built in the expected location: $djpath/runtest" && exit 1) - - # If configure or build fails, the execution will stop - # because of 'set -e'. But for 'make check' we want to - # execute all the tests, and report if there were some - # errors. - ${BUILD_SHELL} -c "../configure --enable-targets=all --disable-ld --disable-gold --disable-gas --disable-gprof --disable-sim --disable-lto --prefix=`pwd`/install ${bfd}" - ${BUILD_SHELL} -c "make all -j$jobs" - ${BUILD_SHELL} -c "PATH=$djpath:$PATH make check-gdb -j$jobs -k" || result=1 - - # Use GDB's combined summary file instead of each test's individual - # summary. - sums="gdb/testsuite/gdb.sum" - set +x - echo '############################################' - echo 'See unexpected results below:' - echo '############################################' - [ x"$sums" != x ] && egrep '^FAIL:|^XPASS:' $sums || true - echo '############################################' - echo 'See ends of sumfiles below:' - echo '############################################' - [ x"$sums" != x ] && tail $sums - - set -x - # Split $logserver into "server:path". - basedir="${log_server#*:}" - log_server="${log_server%:*}" - eval dir=${log_name} - ${BUILD_SHELL} -c "ssh ${log_server} mkdir -p ${basedir}/${dir}" - - # gcc-compare-results handles only .xz files, so compress - # them before upload. Since the file are created inside a - # container, the uid/gid may differ from the host's and - # cause permission errors during compression. Copy them, - # so that xz can operate. - rm -rf artifacts - mkdir -p artifacts - cp ${sums} artifacts/ - for sum in ${sums} - do - log=$(echo $sum | sed 's/.sum/.log/') - cp $log artifacts/ - done - xz artifacts/*.sum artifacts/*.log - ${BUILD_SHELL} -c "scp artifacts/*.sum.xz artifacts/*.log.xz ${log_server}:${basedir}/${dir}/" - - echo BUILD FINISHED $(date) - - # Cleanup to save disk space - cd .. - du -sh build-$target - rm -rf build-$target || true - - if $dont_fail; then - result="0" - fi - exit $result - publishers: - - email-ext: - recipients: 'luis.machado@linaro.org' - aborted: true - matrix-trigger: only-parent |