File tree Expand file tree Collapse file tree 3 files changed +27
-1
lines changed Expand file tree Collapse file tree 3 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 1+ pipeline {
2+ agent none
3+ stages {
4+ stage(' Build' ) {
5+ agent { docker ' openjdk:8-jdk' }
6+ steps {
7+ sh ' ./gradlew cleanTest test --rerun-tasks'
8+ }
9+ }
10+ }
11+
12+ post {
13+ always {
14+ node(' master' ) {
15+ archiveArtifacts artifacts : ' /var/log/scope/scope_*.log'
16+ sh ' rm -f scope_*.log'
17+ }
18+ }
19+ }
20+ }
Original file line number Diff line number Diff line change @@ -337,7 +337,13 @@ configure([rootProject] + javaProjects) { project ->
337337 systemProperty(" java.awt.headless" , " true" )
338338 systemProperty(" testGroups" , project. properties. get(" testGroups" ))
339339 systemProperty(" io.netty.leakDetection.level" , " paranoid" )
340- jvmArgs(" -javaagent:${ project.rootDir} /.scope/scope-agent-0.1.10-beta.2.jar" )
340+
341+
342+ if (project. hasProperty(' externalJavaAgentPath' )){
343+ jvmArgs = [" -javaagent:${ project.property('externalJavaAgentPath')} " ]
344+ } else {
345+ jvmArgs(" -javaagent:${ project.rootDir} /.scope/scope-agent-0.2.1-beta.1.jar" )
346+ }
341347 }
342348
343349 checkstyle {
You can’t perform that action at this time.
0 commit comments