Upload performance test result to artifact, cat the result to console
As I didn't find a solution to display the txt in pipeline ui.
This commit is contained in:
parent
6a89285dd6
commit
562742206a
1
.gitignore
vendored
1
.gitignore
vendored
@ -40,3 +40,4 @@ bin/
|
|||||||
|
|
||||||
### Mac OS ###
|
### Mac OS ###
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
performance.txt
|
||||||
|
@ -25,3 +25,6 @@ run-performance-analyze:
|
|||||||
- job: unit-test-all
|
- job: unit-test-all
|
||||||
script:
|
script:
|
||||||
- ./gradlew runPerformanceAnalyze
|
- ./gradlew runPerformanceAnalyze
|
||||||
|
- cat performance.txt
|
||||||
|
artifacts:
|
||||||
|
paths: ['performance.txt']
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
import java.io.FileOutputStream
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("java")
|
id("java")
|
||||||
}
|
}
|
||||||
@ -37,4 +39,5 @@ tasks.named<JavaExec>("runPerformanceAnalyze") {
|
|||||||
classpath = sourceSets.test.get().runtimeClasspath
|
classpath = sourceSets.test.get().runtimeClasspath
|
||||||
mainClass.set("com.cleverthis.interview.PerformanceAnalyze")
|
mainClass.set("com.cleverthis.interview.PerformanceAnalyze")
|
||||||
jvmArgs("-Dfast=true")
|
jvmArgs("-Dfast=true")
|
||||||
|
standardOutput = FileOutputStream("performance.txt")
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user