-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
56 lines (51 loc) · 1.95 KB
/
Jenkinsfile
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
50
51
52
53
54
55
56
#!/usr/bin/env groovy
// require an ArcGIS licence to run tests
node('arcgis102-licence') {
ws ("workspace\\mapaction-toolbox\\${env.BUILD_NUMBER}") {
/*
properties{
PipelineTriggersJobProperty(triggers: [
PeriodicFolderTrigger(interval: 60),
SCMTrigger(scmpoll: 15)
])
*/
/*
properties [$class: 'PipelineTriggersJobProperty',
triggers: [
[$class: 'PeriodicFolderTrigger',
interval: '60'
],
[$class: 'SCMTrigger',
scmpoll: '15'
],
]
]
*/
timeout(time: 10, unit: 'MINUTES'){
stage('Build') {
echo 'Stage: Build'
checkout scm
// build sln
bat "\"${tool 'MSBuild v4.0.30319'}\" arcgis10_mapping_tools/MapAction-toolbox.sln /t:build /p:PlatformTarget=x86 /p:Configuration=Release /maxcpucount"
// copy the resultant esriAddIns to a common directory
bat 'arcgis10_mapping_tools\\arcaddins_for_testing\\post_build_copy_addins.cmd'
}
stage('Test') {
echo 'Stage: Test'
try{
bat 'arcgis10_mapping_tools\\run-unittests.cmd'
} catch (error) {
error 'some unittests failed'
} finally {
// publish nUnit results
step([$class: 'NUnitPublisher', testResultsPattern: 'TestResult.xml', debug: false, keepJUnitReports: true, skipJUnitArchiver:false, failIfNoResults: true])
// archieve the esriAddIns
archiveArtifacts 'arcgis10_mapping_tools/arcaddins_for_testing/*.esriAddIn'
}
}
stage('Deploy') {
echo 'deploying'
}
}
}
}