Skip to content

Commit 23cb0c9

Browse files
authored
Enable jenkins tests (#855)
1 parent dfe8c63 commit 23cb0c9

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

build/buildpipeline/pipeline.groovy

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import org.dotnet.ci.pipelines.Pipeline
2+
3+
def windowsPipeline = Pipeline.createPipeline(this, 'build/buildpipeline/windows.groovy')
4+
5+
def configurations = [
6+
'Debug',
7+
'Release'
8+
]
9+
10+
configurations.each { configuration ->
11+
12+
def params = [
13+
'Configuration': configuration
14+
]
15+
16+
windowsPipeline.triggerPipelineOnEveryGithubPR("Windows ${configuration} x64 Build", params)
17+
windowsPipeline.triggerPipelineOnGithubPush(params)
18+
19+
}

build/buildpipeline/windows.groovy

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
@Library('dotnet-ci') _
2+
3+
// 'node' indicates to Jenkins that the enclosed block runs on a node that matches
4+
// the label 'windows-with-vs'
5+
simpleNode('Windows.10.Enterprise.RS3.ASPNET') {
6+
stage ('Checking out source') {
7+
checkout scm
8+
}
9+
stage ('Build') {
10+
def logFolder = getLogFolder()
11+
def environment = "set ASPNETCORE_TEST_LOG_DIR=${WORKSPACE}\\${logFolder}"
12+
bat "${environment}&.\\run.cmd -CI default-build /p:Configuration=${params.Configuration}"
13+
}
14+
}

0 commit comments

Comments
 (0)