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/12/12 18:55:50 UTC
[trafficserver-ci] branch main updated: Create osx-m1.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 906b54f Create osx-m1.pipeline
906b54f is described below
commit 906b54fd0dd793ccc2113862c23587d5ed6a3619
Author: Evan Zelkowitz <ez...@apache.org>
AuthorDate: Mon Dec 12 11:55:46 2022 -0700
Create osx-m1.pipeline
---
jenkins/branch/osx-m1.pipeline | 48 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/jenkins/branch/osx-m1.pipeline b/jenkins/branch/osx-m1.pipeline
new file mode 100644
index 0000000..767fd79
--- /dev/null
+++ b/jenkins/branch/osx-m1.pipeline
@@ -0,0 +1,48 @@
+pipeline {
+ agent {label 'osx-m1'}
+ stages {
+ stage('Clone') {
+ steps {
+ dir('src') {
+ script {
+ String branch = env.SHA1
+ if (! branch) {
+ branch = '*/' + env.GITHUB_BRANCH
+ }
+
+ checkout([$class: 'GitSCM',
+ branches: [[name: branch]],
+ userRemoteConfigs: [[url: env.GITHUB_URL]],
+ extensions: [[$class: 'CloneOption', timeout: 10]],
+ ])
+ }
+ }
+ echo 'Finished Cloning'
+ }
+ }
+ stage('Build') {
+ steps {
+ echo 'Starting build'
+ dir('src') {
+ sh '''
+ autoreconf -fiv
+ CC="clang" \
+ CXX="clang++" \
+ CXXFLAGS="-Qunused-arguments" \
+ WITH_LIBCPLUSPLUS="yes" \
+ ./configure \
+ --enable-experimental-plugins \
+ --with-openssl=/usr/local/opt/openssl
+ make -j3
+ '''
+ }
+ }
+ }
+ }
+
+ post {
+ cleanup {
+ cleanWs()
+ }
+ }
+}