Add jenkins job for sshsm project 73/34873/18
authorNingSun <ning.sun@intel.com>
Fri, 9 Mar 2018 00:11:39 +0000 (16:11 -0800)
committerNingSun <ning.sun@intel.com>
Mon, 12 Mar 2018 16:44:07 +0000 (09:44 -0700)
Issue-ID: AAF-152
Change-Id: Ic6ab39b4775cf1e874b2f2d1da89a7566bce8359
Signed-off-by: NingSun <ning.sun@intel.com>
jjb/aaf/aaf-sshsm.yaml
jjb/aaf/build-sshsm.sh [new file with mode: 0644]
jjb/global-templates-c.yaml [new file with mode: 0644]

index f48c2cf..5908627 100644 (file)
@@ -2,12 +2,17 @@
 - project:
     name: aaf-sshsm
     project-name: 'aaf-sshsm'
+    build-timeout: 60
+    project: 'aaf/sshsm'
     jobs:
       - gerrit-maven-clm
-    project: 'aaf/sshsm'
+      - '{project-name}-{stream}-verify-c':
+         script:
+            !include-raw-escape: 'build-sshsm.sh'
     stream:
       - 'master':
           branch: 'master'
+
     mvn-settings: 'aaf-sshsm-settings'
     files: '**'
     archive-artifacts: ''
diff --git a/jjb/aaf/build-sshsm.sh b/jjb/aaf/build-sshsm.sh
new file mode 100644 (file)
index 0000000..e26d44b
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/bash
+#
+
+CURRENTDIR="$(pwd)"
+echo $CURRENTDIR
+
+echo 'Building the SoftHSMv2...'
+
+cd SoftHSMv2
+sh autogen.sh
+./configure
+make check
+cd ..
+
+echo 'Building the TPM2-Plugin...'
+
+cd TPM2-Plugin
+./bootstrap
+./configure
+make
diff --git a/jjb/global-templates-c.yaml b/jjb/global-templates-c.yaml
new file mode 100644 (file)
index 0000000..caed98f
--- /dev/null
@@ -0,0 +1,51 @@
+---
+# vim: sw=2 ts=2 sts=2 et :
+
+- job-template:
+    #
+    # job template for build C/C++ project
+    #
+    # Required Variables:
+    #   script:         build script to execute
+    #
+
+    name: '{project-name}-{stream}-verify-c'
+    project-type: freestyle
+    node: '{build-node}'
+
+    properties:
+      - infra-properties:
+          build-days-to-keep: '{build-days-to-keep}'
+
+    parameters:
+      - infra-parameters:
+          project: '{project}'
+          branch: '{branch}'
+          refspec: 'refs/heads/{branch}'
+          artifacts: '{archive-artifacts}'
+      - maven-exec:
+          maven-version: '{maven-version}'
+
+    scm:
+      - gerrit-trigger-scm:
+          refspec: 'refs/heads/master'
+          choosing-strategy: 'gerrit'
+          submodule-recursive: '{submodule-recursive}'
+
+    wrappers:
+      - infra-wrappers:
+          build-timeout: '{build-timeout}'
+
+    triggers:
+      - gerrit-trigger-patch-submitted:
+          server: '{server-name}'
+          project: '{project}'
+          branch: '{branch}'
+          files: '**'
+
+    builders:
+      - shell: '{script}'
+
+    publishers:
+      - infra-shiplogs:
+          maven-version: '{maven-version}'