You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ez...@apache.org on 2022/06/03 22:10:35 UTC
[trafficserver-ci] branch main updated: Create osx.pipeline
This is an automated email from the ASF dual-hosted git repository.
eze pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/trafficserver-ci.git
The following commit(s) were added to refs/heads/main by this push:
new 11407c2 Create osx.pipeline
11407c2 is described below
commit 11407c2b7882040e8b668cde3efc61e654adc908
Author: Evan Zelkowitz <ez...@apache.org>
AuthorDate: Fri Jun 3 16:10:32 2022 -0600
Create osx.pipeline
---
jenkins/github/osx.pipeline | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/jenkins/github/osx.pipeline b/jenkins/github/osx.pipeline
new file mode 100644
index 0000000..b742912
--- /dev/null
+++ b/jenkins/github/osx.pipeline
@@ -0,0 +1,38 @@
+pipeline {
+ agent {label 'osx'}
+ stages {
+ stage('Clone') {
+ steps {
+ dir('src') {
+ echo "${sha1}"
+ checkout([$class: 'GitSCM',
+ branches: [[name: sha1]],
+ extensions: [],
+ //+refs/pull/${GITHUB_PR_NUMBER}/merge:refs/remotes/origin-pull/pull/${GITHUB_PR_NUMBER}/merge
+ userRemoteConfigs: [[url: github_url, refspec: '+refs/pull/*:refs/remotes/origin/pr/*']]])
+ //userRemoteConfigs: [[url: 'https://github.com/ezelkow1/trafficserver', refspec: '+refs/pull/*:refs/remotes/origin/pr/*']]])
+ //userRemoteConfigs: [[url: 'https://github.com/ezelkow1/trafficserver', refspec: '+refs/pull/${sha1}/merge:refs/remotes/origin/pull/${sha1}/merge']]])
+ sh 'head -1 README'
+ }
+ echo 'Finished Cloning'
+ }
+ }
+ stage('Build') {
+ steps {
+ echo 'Starting build'
+ dir('src') {
+ sh('head -1 README')
+ sh('autoreconf -fiv')
+ sh('CC="clang" CXX="clang++" CXXFLAGS="-Qunused-arguments" WITH_LIBCPLUSPLUS="yes" ./configure --enable-experimental-plugins')
+ sh('make -j3')
+ }
+ }
+ }
+ }
+
+ post {
+ cleanup {
+ cleanWs()
+ }
+ }
+}