blob: 72b0275ca7a547bc63b6ed1d22d3a624f295461e (
plain)
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
39
40
41
42
43
44
45
46
47
48
49
|
@Library('dotnet-ci') _
// Incoming parameters. Access with "params.<param name>".
// Note that the parameters will be set as env variables so we cannot use names that conflict
// with the engineering system parameter names.
// CGroup - Build configuration.
// TestOuter - If true, runs outerloop, if false runs just innerloop
def submittedHelixJson = null
simpleNode('OSX10.12','latest') {
stage ('Checkout source') {
checkout scm
}
def logFolder = getLogFolder()
stage ('Initialize tools') {
try {
// Workaround nuget issue https://github.com/NuGet/Home/issues/5085 were we need to set HOME
// Init tools
sh 'HOME=\$WORKSPACE/tempHome ./init-tools.sh'
}
catch (err) {
// On errors for build tools initializations, it's useful to echo the contents of the file
// for easy diagnosis. This could also be copied to the log directory
sh 'cat init-tools.log'
// Ensure the build result is still propagated.
throw err
}
}
stage ('Generate version assets') {
// Generate the version assets. Do we need to even do this for non-official builds?
sh "./build-managed.sh -- /t:GenerateVersionSourceFile /p:GenerateVersionSourceFile=true"
}
stage ('Sync') {
sh "HOME=\$WORKSPACE/tempHome ./sync.sh -p -- /p:ArchGroup=x64"
}
stage ('Build Product') {
sh "HOME=\$WORKSPACE/tempHome ./build.sh -buildArch=x64 -${params.CGroup}"
}
stage ('Build Tests') {
def additionalArgs = ''
if (params.TestOuter) {
additionalArgs = '-Outerloop'
}
sh "HOME=\$WORKSPACE/tempHome ./build-tests.sh -buildArch=x64 -${params.CGroup} ${additionalArgs} -- /p:ArchiveTests=true /p:EnableDumpling=true"
}
}
|