Updated Branches:
  refs/heads/master 4e713d748 -> cd7f61025

add proposed jenkins-job-builder configuration

I think that this jenkins-job-builder configuration will execute
the equivalent jobs to what we have now with manually maintained
jobs. We have 2 labels, "linux" and "omnios". Every system except
OmniOS (which is weird) should be able to build the "linux" label.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/cd7f6102
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/cd7f6102
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/cd7f6102

Branch: refs/heads/master
Commit: cd7f6102519669f8a85934fe2cfb241bb0c22c98
Parents: 4e713d7
Author: James Peach <[email protected]>
Authored: Sat Aug 17 22:42:38 2013 -0700
Committer: James Peach <[email protected]>
Committed: Sat Aug 17 22:44:55 2013 -0700

----------------------------------------------------------------------
 ci/Makefile     |  21 +++++++++
 ci/jenkins.yaml | 117 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 138 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/cd7f6102/ci/Makefile
----------------------------------------------------------------------
diff --git a/ci/Makefile b/ci/Makefile
new file mode 100644
index 0000000..95b3c1a
--- /dev/null
+++ b/ci/Makefile
@@ -0,0 +1,21 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+
+test:
+       [ -d xml ] || mkdir xml && jenkins-jobs test jenkins.yaml -o xml
+
+clean:
+       -rm -rf xml

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/cd7f6102/ci/jenkins.yaml
----------------------------------------------------------------------
diff --git a/ci/jenkins.yaml b/ci/jenkins.yaml
new file mode 100644
index 0000000..e425d26
--- /dev/null
+++ b/ci/jenkins.yaml
@@ -0,0 +1,117 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+
+- builder:
+    name: linux-regression
+    builders:
+        - shell: |
+            git clean -d -f -x -q
+            mkdir -p "${WORKSPACE}/install/${JOB_NAME}.${BUILD_NUMBER}"
+            autoreconf -fi
+        - shell: |
+            ./configure 
--prefix="${WORKSPACE}/install/${JOB_NAME}.${BUILD_NUMBER}" 
--enable-experimental-plugins
+        - shell: make -j2 V=1
+        - shell: make check
+        - shell: make install
+        - shell: |
+            
"${WORKSPACE}/install/${JOB_NAME}.${BUILD_NUMBER}"/bin/traffic_server -R 1
+        - shell: |
+            rm -rf "${WORKSPACE}/install/${JOB_NAME}.${BUILD_NUMBER}"
+
+- builder:
+    name: 'omnios-regression'
+    builders:
+        - shell: |
+            git clean -d -f -x -q
+            mkdir -p "${WORKSPACE}/install/${JOB_NAME}.${BUILD_NUMBER}"
+            autoreconf -fi
+        - shell: |
+            export 
PATH=/sbin:~/bin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/omni/bin:/opt/gcc-4.6.3/bin/:/usr/ucb:/usr/ccs/bin:/usr/sfw/bin:/usr/dt/bin:/usr/openwin/bin
+            export CC=/opt/gcc-4.6.3/bin/gcc
+            export CXX=/opt/gcc-4.6.3/bin/g++
+            export WITH_LIBCPLUSPLUS=yes
+            export CFLAGS=-m64
+            export CXXFLAGS=-m64
+            export CPPFLAGS=-I/opt/omni/include
+            export LDFLAGS="-L/opt/omni/lib/amd64 -R/opt/omni/lib/amd64"
+            ./configure 
--prefix="${WORKSPACE}/install/${JOB_NAME}.${BUILD_NUMBER}"  
--with-tcl=/opt/omni/lib/amd64 --enable-experimental-plugins
+        - shell: gmake -j2 V=1
+        - shell: gmake check
+        - shell: gmake install
+        - shell: |
+            
"${WORKSPACE}/install/${JOB_NAME}.${BUILD_NUMBER}"/bin/traffic_server -R 1
+        - shell: |
+            rm -rf "${WORKSPACE}/install/${JOB_NAME}.${BUILD_NUMBER}"
+
+- job-template:
+    name: '{name}-regression'
+    scm:
+        - git:
+            url: file:///home/jenkins/git/trafficserver
+            branches:
+                - '{branch}'
+    triggers:
+        - pollscm: '*/2 * * * *'
+    parameters:
+        - label:
+            name: '{label}'
+            description: '{label} label'
+    builders:
+        - '{label}-regression'
+
+- project:
+    name: linux-master
+    jobs:
+        - '{name}-regression':
+            label: linux
+            branch: master
+
+- project:
+    name: linux-3.3.x
+    jobs:
+        - '{name}-regression':
+            label: linux
+            branch: 3.3.x
+
+- project:
+    name: linux-3.4.x
+    jobs:
+        - '{name}-regression':
+            label: linux
+            branch: 3.4.x
+
+- project:
+    name: omnios-master
+    jobs:
+        - '{name}-regression':
+            label: omnios
+            branch: master
+
+- project:
+    name: omnios-3.3.x
+    jobs:
+        - '{name}-regression':
+            label: omnios
+            branch: 3.3.x
+
+- project:
+    name: omnios-3.4.x
+    jobs:
+        - '{name}-regression':
+            label: omnios
+            branch: 3.4.x
+
+# vim: sw=4 ts=4 et ft=yaml :

Reply via email to