Enable jenkins tests (#855)
This commit is contained in:
parent
dfe8c63bf4
commit
23cb0c90b2
|
|
@ -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)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -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}"
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue