Skip to content

Commit

Permalink
Add Jenkins file for building openssl on Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiguangwang committed Dec 20, 2017
1 parent 5f8c7a7 commit 121f151
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions openssl/linux/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#!/usr/bin/env groovy

def svnRepo = 'svn://svn.xsjme.com/rog2/pirates/trunk/server/thirdparty/openssl'
def svnCredentialsId = 'subversion'

pipeline {
agent {
label "ubuntu:16.04"
}
options {
skipDefaultCheckout()
}
parameters {
string(name: 'OPENSSL_VERSION',
defaultValue: '1.1.0f',
description: 'See: https://www.openssl.org/source/')
}
environment {
CC = '/usr/bin/gcc-7'
CXX = '/usr/bin/g++-7'
OPENSSL_VERSION = "${params.OPENSSL_VERSION}"
OPENSSL_PREFIX = "${env.HOME}/thirdparty/openssl/${params.OPENSSL_VERSION}"
}
stages {
stage('Cleanup') {
steps {
cleanWs()
}
}
stage('Checkout') {
steps {
checkout([$class: 'SubversionSCM',
locations: [[
credentialsId: svnCredentialsId,
remote: svnRepo,
local: '.',
depthOption: 'files',
ignoreExternalsOption: true,
]],
quietOperation: false,
// No need to update, because we clean workspace everytime
workspaceUpdater: [$class: 'NoopUpdater']
])
}
}
stage('Build') {
steps {
sh './build-linux.sh'
}
}
stage('Archive') {
steps {
zip archive: true, dir: env.OPENSSL_PREFIX, zipFile: "openssl-${env.OPENSSL_VERSION}-linux.zip"
}
}
}
}

0 comments on commit 121f151

Please sign in to comment.