jjb: Add linux-rseq coverity job
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 13 Feb 2018 16:21:53 +0000 (11:21 -0500)
committerMichael Jeanson <mjeanson@efficios.com>
Tue, 13 Feb 2018 16:21:53 +0000 (11:21 -0500)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
jobs/linux-rseq.yaml [new file with mode: 0644]
scripts/common/coverity.sh

diff --git a/jobs/linux-rseq.yaml b/jobs/linux-rseq.yaml
new file mode 100644 (file)
index 0000000..d9c7028
--- /dev/null
@@ -0,0 +1,82 @@
+- defaults:
+    name: linux-rseq
+    description: |
+
+      <p>Job is managed by Jenkins Job Builder.</p>
+
+    project-type: freestyle
+
+    wrappers:
+      - ansicolor
+      - timeout:
+          timeout: 90
+          fail: true
+          type: absolute
+      - timestamps
+      - workspace-cleanup:
+          clean-if:
+            - failure: false
+
+    scm:
+      - git:
+          url: git://git-mirror.internal.efficios.com/kernel/rseq/linux-rseq.git
+          branches:
+            - origin/rseq/dev
+          basedir: src/linux-rseq
+          skip-tag: true
+
+    triggers:
+      - pollscm:
+          cron: "@hourly"
+
+    properties:
+      - inject:
+          properties-content: |
+            PROJECT_NAME=linux-rseq
+      - build-discarder:
+          num-to-keep: 2
+
+
+- job-template:
+    name: linux-rseq_master_coverity
+    defaults: linux-rseq
+    node: 'x86-64'
+
+    triggers:
+      - pollscm:
+          cron: "@daily"
+
+    wrappers:
+      - ansicolor
+      - timeout:
+          timeout: 180
+          fail: true
+          type: absolute
+      - timestamps
+      - workspace-cleanup:
+          clean-if:
+            - failure: false
+      - credentials-binding:
+          - username-password-separated:
+              credential-id: linux-rseq_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: linux-rseq
+    email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com'
+    jobs:
+      - 'linux-rseq_master_coverity'
+
index dae6b5420b85505b0aae51be2c2dbfdca637475a..0a760bd847b3d822af862126f531510092c23ce9 100755 (executable)
@@ -76,6 +76,10 @@ lttng-scope|ctf-java|libdelorean-java|jabberwocky)
     BUILD_TYPE="maven"
     MVN_BIN="$HOME/tools/hudson.tasks.Maven_MavenInstallation/default/bin/mvn"
     ;;
+linux-rseq)
+    CONF_OPTS=""
+    BUILD_TYPE="linux-rseq"
+    ;;
 *)
     echo "Generic project, no configure options."
     CONF_OPTS=""
@@ -152,12 +156,6 @@ cd "$SRCDIR"
 
 COVERITY_SCAN_VERSION=$(git describe --always | sed 's|-|.|g')
 
-# Prepare build dir for autotools based projects
-if [ -f "./bootstrap" ]; then
-  ./bootstrap
-  ./configure $CONF_OPTS
-fi
-
 # Build
 echo -e "\033[33;1mRunning Coverity Scan Analysis Tool...\033[0m"
 case "$BUILD_TYPE" in
@@ -173,8 +171,18 @@ maven)
       clean verify
     ;;
 autotools)
+    # Prepare build dir for autotools based projects
+    if [ -f "./bootstrap" ]; then
+      ./bootstrap
+      ./configure $CONF_OPTS
+    fi
+
     cov-build --dir "$RESULTS_DIR" $COVERITY_SCAN_BUILD_OPTIONS make -j"$NPROC" V=1
     ;;
+linux-rseq)
+    make defconfig
+    cov-build --dir "$RESULTS_DIR" $COVERITY_SCAN_BUILD_OPTIONS make -j"$NPROC" kernel/rseq.o kernel/cpu_opv.o V=1
+    ;;
 *)
     echo "Unsupported build type: $BUILD_TYPE"
     exit 1
This page took 0.026091 seconds and 4 git commands to generate.