forked from root-project/jenkins-pipelines
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Incrementals.groovy
38 lines (30 loc) · 1.27 KB
/
Incrementals.groovy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!groovy
@Library('root-pipelines')
import cern.root.pipeline.*
properties([
pipelineTriggers([githubPush(), pollSCM('H/10 * * * *')]),
parameters([
string(name: 'VERSION', defaultValue: 'master', description: 'Branch to be built'),
string(name: 'EXTERNALS', defaultValue: 'ROOT-latest', description: ''),
string(name: 'EMPTY_BINARY', defaultValue: 'false', description: 'Boolean to empty the binary directory (i.e. to force a full re-build)'),
string(name: 'ExtraCMakeOptions', defaultValue: '-Dvc=OFF -Dimt=OFF -Dccache=ON', description: 'Additional CMake configuration options of the form "-Doption1=value1 -Doption2=value2"'),
string(name: 'MODE', defaultValue: 'experimental', description: 'The build mode')
])
])
GenericBuild build = new GenericBuild(this, 'root-incrementals-build', params.MODE)
stage('Configuring') {
node('master') {
git url: 'https://github.com/root-project/root.git', branch: 'master'
}
build.addConfigurations(BuildConfiguration.incrementalConfiguration)
def mattermost = new Mattermost()
build.afterBuild({ finishedBuild ->
// mattermost.postMattermostReport(finishedBuild)
})
}
stage('Building') {
build.build()
}
stage('Publish reports') {
build.sendEmails()
}