jjb: binutils-gdb: Move build to jammy-amd64 nodes
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 6 Jul 2022 19:18:27 +0000 (15:18 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Mon, 18 Jul 2022 18:26:47 +0000 (14:26 -0400)
Change-Id: Ie6ec381ab31d6cd64b4790a39a961eac4dfa45d7
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
jobs/binutils-gdb.yaml
scripts/binutils-gdb/build.sh

index fa88daa5bbcc2af628f87fdf1c578d951f0db214..0f6298f3297db4b4809796ab02b91357fc37828c 100644 (file)
@@ -8,15 +8,15 @@
     project-type: freestyle
 
     wrappers:
-      - ansicolor
+      - ansicolor:
+          colormap: gnome-terminal
       - timeout:
           timeout: 20
           fail: true
           type: no-activity
+          write-description: "<h1 style=\"color:red\">This build failed due to timeout.</h1>"
       - timestamps
-      - workspace-cleanup:
-          clean-if:
-            - failure: false
+      - workspace-cleanup
 
     scm:
       - git:
           num-to-keep: 10
 
 
-## Templates ##
-- job-template:
-    name: binutils-gdb_{version}_build
-    defaults: binutils-gdb
+## Anchors
 
+# Default matrix axes
+- binutils-gdb_matrix_axes_defaults: &binutils-gdb_matrix_axes_defaults
+    name: 'binutils-gdb_matrix_axes_defaults'
     project-type: matrix
     node: 'master' # Applies only to matrix flyweight task
     axes:
-      - axis:
+      - axis: &binutils-gdb_matrix_axis_platform
          type: slave
-         name: arch
-         values: '{obj:arch}'
-      - axis:
+         name: platform
+         values: '{obj:platforms}'
+      - axis: &binutils-gdb_matrix_axis_target_board
          type: user-defined
          name: target_board
-         values: '{obj:target_board}'
+         values: '{obj:target_boards}'
 
+# Default builders
+- binutils-gdb_builders_defaults: &binutils-gdb_builders_defaults
+    name: 'binutils-gdb_builders_defaults'
     builders:
       - shell:
          !include-raw-escape:
            - scripts/common/print.sh
            - scripts/binutils-gdb/build.sh
 
-    publishers:
-      - archive:
-          artifacts: 'build/**,results/**'
-          allow-empty: false
-      - junit:
-          results: 'results/*.xml'
-      - email:
-          recipients: 'simon.marchi@efficios.com'
 
-    builders:
-      - shell:
-         !include-raw-escape:
-           - scripts/common/print.sh
-           - scripts/binutils-gdb/build.sh
+## Templates ##
+- job-template:
+    name: binutils-gdb_{version}_linuxbuild
+    defaults: binutils-gdb
+
+    <<: *binutils-gdb_matrix_axes_defaults
+    <<: *binutils-gdb_builders_defaults
 
     publishers:
       - archive:
           allow-empty: false
       - junit:
           results: 'results/*.xml'
+      - workspace-cleanup:
+          clean-if:
+            - failure: false
       - email:
           recipients: 'simon.marchi@efficios.com'
 
 - job-template:
-    name: dev_gerrit_binutils-gdb_build
+    name: dev_gerrit_binutils-gdb_linuxbuild
     defaults: binutils-gdb
     concurrent: true
 
-    project-type: matrix
-
     scm:
       - git:
           url: https://review.lttng.org/binutils-gdb
                 - branch-compare-type: 'ANT'
                   branch-pattern: '**'
 
-    node: 'master'
-    axes:
-      - axis:
-         type: slave
-         name: arch
-         values: '{obj:arch}'
-      - axis:
-         type: user-defined
-         name: target_board
-         values: '{obj:target_board}'
-
-    builders:
-      - shell:
-         !include-raw-escape:
-           - scripts/common/print.sh
-           - scripts/binutils-gdb/build.sh
+    <<: *binutils-gdb_matrix_axes_defaults
+    <<: *binutils-gdb_builders_defaults
 
     publishers:
       - archive:
           allow-empty: false
       - junit:
           results: 'results/*.xml'
+      - workspace-cleanup:
+          clean-if:
+            - failure: false
 
     properties:
       - build-discarder:
     version:
       - master
     jobs:
-      - 'binutils-gdb_{version}_build':
-          arch: !!python/tuple [amd64]
-          target_board: !!python/tuple ["unix", "native-gdbserver", "native-extended-gdbserver"]
+      - 'binutils-gdb_{version}_linuxbuild':
+          platforms: !!python/tuple [jammy-amd64]
+          target_boards: !!python/tuple ["unix", "native-gdbserver", "native-extended-gdbserver"]
 
 - project:
     name: gerrit-gdb
     jobs:
-      - 'dev_gerrit_binutils-gdb_build':
-          arch: !!python/tuple [amd64]
-          target_board: !!python/tuple ["unix", "native-gdbserver", "native-extended-gdbserver"]
+      - 'dev_gerrit_binutils-gdb_linuxbuild':
+          platforms: !!python/tuple [jammy-amd64]
+          target_boards: !!python/tuple ["unix", "native-gdbserver", "native-extended-gdbserver"]
 
 - project:
     name: gdb-views
index 3d5c6358ffca09ebdc1c91a67436b81f535d9e91..828a09fce7746dcefa5e1e2ac80ef1da36d4a0a5 100755 (executable)
@@ -116,7 +116,7 @@ EOF
 # Required variables
 WORKSPACE=${WORKSPACE:-}
 
-arch=${arch:-}
+platform=${platform:-}
 conf=${conf:-}
 build=${build:-}
 target_board=${target_board:-unix}
@@ -136,7 +136,7 @@ export CXXFLAGS="-O2 -fsanitize=address -D_GLIBCXX_DEBUG=1"
 export LDFLAGS="-fsanitize=address"
 
 # Set platform variables
-case "$arch" in
+case "$platform" in
 *)
     export MAKE=make
     export TAR=tar
This page took 0.027982 seconds and 4 git commands to generate.