Skip to content
Snippets Groups Projects
Unverified Commit 2a5caabc authored by Lars Bilke's avatar Lars Bilke Committed by GitHub
Browse files

Merge pull request #1974 from bilke/jenkins-checkout

Jenkins checkout
parents 5ce9bd69 b17f4fb5
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ timestamps { ...@@ -10,7 +10,7 @@ timestamps {
builders['gcc'] = { builders['gcc'] = {
node('docker') { node('docker') {
dir('ogs') { dir('ogs') {
checkoutWithTags() checkout scm
tag = helper.getTag() tag = helper.getTag()
} }
load 'ogs/scripts/jenkins/gcc.groovy' load 'ogs/scripts/jenkins/gcc.groovy'
...@@ -19,36 +19,36 @@ builders['gcc'] = { ...@@ -19,36 +19,36 @@ builders['gcc'] = {
builders['gcc-conan'] = { builders['gcc-conan'] = {
node('docker') { node('docker') {
dir('ogs') { checkoutWithTags() } dir('ogs') { checkout scm }
load 'ogs/scripts/jenkins/gcc-conan.groovy' load 'ogs/scripts/jenkins/gcc-conan.groovy'
} }
} }
builders['gcc-dynamic'] = { builders['gcc-dynamic'] = {
node('envinf1') { node('envinf1') {
dir('ogs') { checkoutWithTags() } dir('ogs') { checkout scm }
load 'ogs/scripts/jenkins/gcc-dynamic.groovy' load 'ogs/scripts/jenkins/gcc-dynamic.groovy'
} }
} }
builders['msvc'] = { builders['msvc'] = {
node('win && conan') { node('win && conan') {
dir('ogs') { checkoutWithTags() } dir('ogs') { checkout scm }
load 'ogs/scripts/jenkins/msvc.groovy' load 'ogs/scripts/jenkins/msvc.groovy'
} }
} }
builders['mac'] = { // builders['mac'] = {
node('mac') { // node('mac') {
dir('ogs') { checkoutWithTags() } // dir('ogs') { checkout scm }
// load 'ogs/scripts/jenkins/mac.groovy' // load 'ogs/scripts/jenkins/mac.groovy'
} // }
} // }
if (helper.isRelease(this)) { if (helper.isRelease(this)) {
builders['msvc32'] = { builders['msvc32'] = {
node('win && conan') { node('win && conan') {
dir('ogs') { checkoutWithTags() } dir('ogs') { checkout scm }
load 'ogs/scripts/jenkins/msvc32.groovy' load 'ogs/scripts/jenkins/msvc32.groovy'
} }
} }
...@@ -57,7 +57,7 @@ if (helper.isRelease(this)) { ...@@ -57,7 +57,7 @@ if (helper.isRelease(this)) {
if (helper.isOriginMaster(this)) { if (helper.isOriginMaster(this)) {
builders['coverage'] = { builders['coverage'] = {
node('docker') { node('docker') {
dir('ogs') { checkoutWithTags() } dir('ogs') { checkout scm }
load 'ogs/scripts/jenkins/coverage.groovy' load 'ogs/scripts/jenkins/coverage.groovy'
} }
} }
...@@ -75,7 +75,7 @@ catch (err) { ...@@ -75,7 +75,7 @@ catch (err) {
} }
node('master') { node('master') {
checkoutWithTags() checkout scm
step([$class: 'LogParserPublisher', step([$class: 'LogParserPublisher',
failBuildOnError: true, failBuildOnError: true,
projectRulePath: "scripts/jenkins/all-log-parser.rules", projectRulePath: "scripts/jenkins/all-log-parser.rules",
...@@ -94,7 +94,7 @@ if (helper.isOriginMaster(this)) { ...@@ -94,7 +94,7 @@ if (helper.isOriginMaster(this)) {
helper.notification(msg: "Marked build for ${tag}.", script: this) helper.notification(msg: "Marked build for ${tag}.", script: this)
node('mac') { node('mac') {
dir('ogs') { checkoutWithTags() } dir('ogs') { checkout scm }
load 'ogs/scripts/jenkins/docset.groovy' load 'ogs/scripts/jenkins/docset.groovy'
} }
} }
......
...@@ -4,6 +4,7 @@ def defaultDockerArgs = '-v /home/jenkins/.ccache:/usr/src/.ccache ' + ...@@ -4,6 +4,7 @@ def defaultDockerArgs = '-v /home/jenkins/.ccache:/usr/src/.ccache ' +
def defaultCMakeOptions = def defaultCMakeOptions =
'-DCMAKE_BUILD_TYPE=Release ' + '-DCMAKE_BUILD_TYPE=Release ' +
'-DOGS_USE_CONAN=ON ' + '-DOGS_USE_CONAN=ON ' +
'-DOGS_CONAN_BUILD=never ' +
'-DOGS_CPU_ARCHITECTURE=generic ' + '-DOGS_CPU_ARCHITECTURE=generic ' +
'-DOGS_PACKAGE_DEPENDENCIES=ON ' '-DOGS_PACKAGE_DEPENDENCIES=ON '
......
def defaultCMakeOptions = def defaultCMakeOptions =
'-DOGS_USE_CONAN=ON ' + '-DOGS_USE_CONAN=ON ' +
'-DOGS_CONAN_BUILD=never ' +
'-DOGS_DOWNLOAD_ADDITIONAL_CONTENT=ON ' + '-DOGS_DOWNLOAD_ADDITIONAL_CONTENT=ON ' +
'-DOGS_PACKAGE_DEPENDENCIES=ON ' '-DOGS_PACKAGE_DEPENDENCIES=ON '
......
def defaultCMakeOptions = def defaultCMakeOptions =
'-DCMAKE_BUILD_TYPE=Release ' + '-DCMAKE_BUILD_TYPE=Release ' +
'-DOGS_USE_CONAN=ON ' + '-DOGS_USE_CONAN=ON ' +
'-DOGS_CONAN_BUILD=never ' +
'-DOGS_32_BIT=ON ' + '-DOGS_32_BIT=ON ' +
'-DOGS_DOWNLOAD_ADDITIONAL_CONTENT=ON ' + '-DOGS_DOWNLOAD_ADDITIONAL_CONTENT=ON ' +
'-DOGS_PACKAGE_DEPENDENCIES=ON ' + '-DOGS_PACKAGE_DEPENDENCIES=ON ' +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment