jjb: Fix msys2 mingw32/64 builds
[lttng-ci.git] / jobs / liburcu.yaml
index 78eec5358517cbfe858e1a1d04db39ab2abed578..05508ff7b3357761f3a2c60d8367e8f5a65921d1 100644 (file)
 
     project-type: freestyle
 
-    logrotate:
-        daysToKeep: -1
-        numToKeep: 2
-        artifactDaysToKeep: -1
-        artifactNumToKeep: -1
-
     wrappers:
-      - workspace-cleanup
-      - timestamps
       - ansicolor
+      - timeout:
+          timeout: 90
+          fail: true
+          type: absolute
+      - timestamps
+      - workspace-cleanup:
+          clean-if:
+            - failure: false
 
     scm:
       - git:
-          url: https://github.com/urcu/userspace-rcu.git
+          url: git://github.com/{github_user}/{github_name}.git
           browser: githubweb
-          browser-url: https://github.com/urcu/userspace-rcu.git
+          browser-url: https://github.com/{github_user}/{github_name}
           branches:
             - origin/{version}
+          basedir: src/liburcu
+          skip-tag: true
+          git-tool: jgit
 
     triggers:
-      - pollscm: "@hourly"
+      - pollscm:
+          cron: "@hourly"
 
     properties:
+      - inject:
+          properties-content: |
+            PROJECT_NAME=liburcu
+      - build-discarder:
+          num-to-keep: 2
       - github:
-          url: https://github.com/urcu/userspace-rcu/
-
+          url: https://github.com/{github_user}/{github_name}
 
-## Templates
-- job-template:
-    name: liburcu_{version}_build
-    defaults: liburcu
 
+## Anchors
+- liburcu_build_axes_defaults: &liburcu_build_axes_defaults
+    name: 'liburcu_build_axes_defaults'
     project-type: matrix
+    node: 'master' # Applies only to matrix flyweight task
     axes:
       - axis:
          type: slave
          name: arch
-         values:
-          - x86-32
-          - x86-64
+         values: '{obj:arch}'
       - axis:
          type: user-defined
          name: conf
-         values:
-          - std
-          - static
-          - tls_fallback
+         values: '{obj:conf}'
       - axis:
          type: user-defined
          name: build
-         values:
-          - std
-          - oot
-          - dist
+         values: '{obj:build}'
 
+- liburcu_build_builders_defaults: &liburcu_build_builders_defaults
+    name: 'liburcu_build_builders_defaults'
     builders:
       - shell:
-         !include-raw-escape scripts/liburcu/build.sh
+         !include-raw-escape: scripts/liburcu/build.sh
+
+- liburcu_build_builders_win: &liburcu_build_builders_win
+    name: 'liburcu_build_builders_win'
+    builders:
+      - conditional-step:
+          condition-kind: strings-match
+          on-evaluation-failure: run
+          condition-string1: '${{arch}}'
+          condition-string2: 'cygwin'
+          steps:
+            - shell:
+               !include-raw-escape:
+                 - scripts/common/cygwin-shebang
+                 - scripts/common/cygwin-prefix
+                 - scripts/liburcu/build.sh
+      - conditional-step:
+          condition-kind: strings-match
+          on-evaluation-failure: run
+          condition-string1: '${{arch}}'
+          condition-string2: 'cygwin64'
+          steps:
+            - shell:
+               !include-raw-escape:
+                 - scripts/common/cygwin64-shebang
+                 - scripts/common/cygwin-prefix
+                 - scripts/liburcu/build.sh
+      - conditional-step:
+          condition-kind: strings-match
+          on-evaluation-failure: run
+          condition-string1: '${{arch}}'
+          condition-string2: 'msys2-mingw32'
+          steps:
+            - inject:
+               properties-content: 'MSYSTEM=MINGW32'
+            - shell:
+               !include-raw-escape:
+                 - scripts/common/msys2-shebang
+                 - scripts/common/cygwin-prefix
+                 - scripts/liburcu/build.sh
+      - conditional-step:
+          condition-kind: strings-match
+          on-evaluation-failure: run
+          condition-string1: '${{arch}}'
+          condition-string2: 'msys2-mingw64'
+          steps:
+            - inject:
+               properties-content: 'MSYSTEM=MINGW64'
+            - shell:
+               !include-raw-escape:
+                 - scripts/common/msys2-shebang
+                 - scripts/common/cygwin-prefix
+                 - scripts/liburcu/build.sh
 
-    # TODO: Scan for open tasks
+- liburcu_build_publishers_defaults: &liburcu_build_publishers_defaults
+    name: 'liburcu_build_publishers_defaults'
     publishers:
       - warnings:
           console-log-parsers:
             - 'GNU Make + GNU C Compiler (gcc)'
+          total-thresholds:
+            unstable:
+              total-all: 0
+              total-high: 0
+              total-normal: 0
+              total-low: 0
       - archive:
           artifacts: 'build/**'
           allow-empty: false
-          fingerprint: true
-      - trigger:
-          project: lttng-ust-{version}
-          threshold: SUCCESS
+      - ircbot:
+          strategy: new-failure-and-fixed
+          matrix-notifier: only-parent
+          channels:
+            - name: '#lttng'
+
+
+## Templates
+- job-template:
+    name: liburcu_{version}_{buildtype}
+    defaults: liburcu
+
+    <<: *liburcu_build_axes_defaults
+    <<: *liburcu_build_builders_defaults
+    <<: *liburcu_build_publishers_defaults
+
+- job-template:
+    name: liburcu_{version}_winbuild
+    defaults: liburcu
+
+    <<: *liburcu_build_axes_defaults
+    <<: *liburcu_build_builders_win
+    <<: *liburcu_build_publishers_defaults
 
 - job-template:
     name: liburcu_{version}_cppcheck
     defaults: liburcu
 
     triggers:
-      - pollscm: "@daily"
+      - pollscm:
+          cron: "@daily"
 
     builders:
       - shell: |
           rm -f liburcu-cppcheck.xml
-          cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 2> liburcu-cppcheck.xml
+          cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/liburcu 2> liburcu-cppcheck.xml
 
     publishers:
       - archive:
           artifacts: 'liburcu-cppcheck.xml'
           allow-empty: false
-          fingerprint: true
       - cppcheck:
           pattern: 'liburcu-cppcheck.xml'
       - email:
     node: 'x86-64'
 
     triggers:
-      - pollscm: "@daily"
+      - pollscm:
+          cron: "@daily"
 
     builders:
       - shell:
-          !include-raw-escape scripts/liburcu/scan-build.sh
+          !include-raw-escape: scripts/common/scan-build.sh
 
     publishers:
       - html-publisher:
           dir: 'scan-build-archive/'
           files: 'index.html'
 
-# TODO: liburcu_{version}_coverity
+- job-template:
+    name: liburcu_{version}_coverity
+    defaults: liburcu
+    node: 'x86-64'
+
+    triggers:
+      - pollscm:
+          cron: "@daily"
+
+    wrappers:
+      - ansicolor
+      - timeout:
+          timeout: 60
+          fail: true
+          type: absolute
+      - timestamps
+      - workspace-cleanup:
+          clean-if:
+            - failure: false
+      - credentials-binding:
+          - username-password-separated:
+              credential-id: liburcu_coverity_token
+              username: COVERITY_SCAN_PROJECT_NAME
+              password: COVERITY_SCAN_TOKEN
+
+    builders:
+      - shell:
+          !include-raw-escape: scripts/common/coverity.sh
+
+    publishers:
+      - workspace-cleanup
+      - archive:
+          artifacts: 'analysis-results.tgz,cov-int/**'
+          allow-empty: false
 
 
 ## Project
 - project:
     name: liburcu
+    github_user: urcu
+    github_name: userspace-rcu
     version:
-      - stable-0.7
       - stable-0.8
+      - stable-0.9
+      - stable-0.10
       - master
     jobs:
-      - 'liburcu_{version}_build'
+      - 'liburcu_{version}_{buildtype}':
+          buildtype: build
+          arch: !!python/tuple [x86-32, x86-64]
+          build: !!python/tuple [std, oot, dist]
+          conf: !!python/tuple [std, static, tls_fallback, debug-rcu]
+      - 'liburcu_{version}_{buildtype}':
+          buildtype: portbuild
+          arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
+          build: !!python/tuple [std]
+          conf: !!python/tuple [std, static, tls_fallback, debug-rcu]
+      - 'liburcu_{version}_{buildtype}':
+          buildtype: slesbuild
+          arch: !!python/tuple [sles12sp2]
+          build: !!python/tuple [std]
+          conf: !!python/tuple [std]
+      - 'liburcu_{version}_{buildtype}':
+          buildtype: solarisbuild
+          arch: !!python/tuple [solaris10, solaris11]
+          build: !!python/tuple [std]
+          conf: !!python/tuple [std, static, tls_fallback, debug-rcu]
+          version: # Solaris support was introduced in 0.9
+            - master
+            - stable-0.9
+            - stable-0.10
+      - 'liburcu_{version}_{buildtype}':
+          buildtype: macosxbuild
+          arch: !!python/tuple [macosx]
+          build: !!python/tuple [std]
+          conf: !!python/tuple [std, static, tls_fallback, debug-rcu]
+          version:
+            - master
+            - stable-0.9
+            - stable-0.10
+      - 'liburcu_{version}_winbuild':
+          arch: !!python/tuple [cygwin, cygwin64]
+          build: !!python/tuple [std]
+          conf: !!python/tuple [std]
+          version:
+            - master
+            - stable-0.9
+            - stable-0.10
       - 'liburcu_{version}_cppcheck'
       - 'liburcu_{version}_scan-build'
+      - 'liburcu_{version}_coverity':
+          version: master
 
This page took 0.026072 seconds and 4 git commands to generate.