Skip to content

Commit f5cc43d

Browse files
Update Scope to v0.2.1-beta.1
1 parent 8d378fe commit f5cc43d

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

Jenkinsfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
}

build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)