Enable test file logging on Jenkins (#2588)

This commit is contained in:
Stephen Halter 2018-05-21 15:17:13 -07:00 committed by GitHub
parent 65605647bb
commit e8f9119d4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View File

@ -5,6 +5,8 @@ simpleNode('Ubuntu16.04', 'latest-or-auto-docker') {
checkout scm
}
stage ('Build') {
sh "./build.sh --ci /p:Configuration=${params.Configuration}"
def logFolder = getLogFolder()
def environment = "ASPNETCORE_TEST_LOG_DIR=${WORKSPACE}/${logFolder}"
sh "${environment} ./build.sh --ci /p:Configuration=${params.Configuration}"
}
}

View File

@ -5,6 +5,8 @@ simpleNode('OSX10.12','latest') {
checkout scm
}
stage ('Build') {
sh "./build.sh --ci /p:Configuration=${params.Configuration}"
def logFolder = getLogFolder()
def environment = "ASPNETCORE_TEST_LOG_DIR=${WORKSPACE}/${logFolder}"
sh "${environment} ./build.sh --ci /p:Configuration=${params.Configuration}"
}
}

View File

@ -7,6 +7,8 @@ simpleNode('Windows_NT','latest') {
checkout scm
}
stage ('Build') {
bat ".\\run.cmd -CI default-build /p:Configuration=${params.Configuration}"
def logFolder = getLogFolder()
def environment = "set ASPNETCORE_TEST_LOG_DIR=${WORKSPACE}\\${logFolder}"
bat "${environment}&.\\run.cmd -CI default-build /p:Configuration=${params.Configuration}"
}
}