repertory/.jenkins_osx
Scott E. Graves a7209184c8
All checks were successful
BlockStorage/repertory_osx_builds/pipeline/head This commit looks good
BlockStorage/repertory_linux_builds/pipeline/head This commit looks good
changed number of jobs
2023-11-01 13:59:36 -05:00

55 lines
1.0 KiB
Groovy

#!groovy
pipeline {
agent any
environment {
REPERTORY_TEST_DIR = "${HOME}/.ci/cfg"
}
options {
disableConcurrentBuilds()
retry(2)
}
stages {
stage('clean') {
steps {
sh 'mkdir -p build/'
sh 'rm -f build/librepertory.a'
sh 'rm -f build/repertory'
sh 'rm -f build/unittests'
}
}
stage('configure') {
steps {
cmake arguments: '.. -DCMAKE_BUILD_TYPE=Release -DREPERTORY_ENABLE_S3=ON', installation: 'InSearchPath', workingDir: 'build'
}
}
stage('build') {
environment {
PATH = "/usr/local/bin:${env.PATH}"
}
steps {
retry(2) {
sleep time: 5, unit: 'SECONDS'
cmake arguments: '--build . -j 3', installation: 'InSearchPath', workingDir: 'build'
}
}
}
stage('deliver') {
environment {
PATH = "/usr/local/bin:${env.PATH}"
}
steps {
sh 'scripts/make_package.sh darwin /Users/sgraves/cert build . /Users/sgraves/mnt/filebase'
}
}
}
}