diff --git a/openssl/linux/Jenkinsfile b/openssl/linux/Jenkinsfile new file mode 100644 index 0000000..a932515 --- /dev/null +++ b/openssl/linux/Jenkinsfile @@ -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" + } + } + } +}