Enable jenkins tests (#855)

This commit is contained in:
Pavel Krymets 2018-05-23 17:13:30 -07:00 committed by GitHub
parent dfe8c63bf4
commit 23cb0c90b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,19 @@
import org.dotnet.ci.pipelines.Pipeline
def windowsPipeline = Pipeline.createPipeline(this, 'build/buildpipeline/windows.groovy')
def configurations = [
'Debug',
'Release'
]
configurations.each { configuration ->
def params = [
'Configuration': configuration
]
windowsPipeline.triggerPipelineOnEveryGithubPR("Windows ${configuration} x64 Build", params)
windowsPipeline.triggerPipelineOnGithubPush(params)
}

View File

@ -0,0 +1,14 @@
@Library('dotnet-ci') _
// 'node' indicates to Jenkins that the enclosed block runs on a node that matches
// the label 'windows-with-vs'
simpleNode('Windows.10.Enterprise.RS3.ASPNET') {
stage ('Checking out source') {
checkout scm
}
stage ('Build') {
def logFolder = getLogFolder()
def environment = "set ASPNETCORE_TEST_LOG_DIR=${WORKSPACE}\\${logFolder}"
bat "${environment}&.\\run.cmd -CI default-build /p:Configuration=${params.Configuration}"
}
}