Repository: beam
Updated Branches:
  refs/heads/master f7aa41aa1 -> a29e0ad61


Clone source to a distinguished subdirectory of Jenkins workspace


Project: http://git-wip-us.apache.org/repos/asf/beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/241d3ced
Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/241d3ced
Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/241d3ced

Branch: refs/heads/master
Commit: 241d3cedd5a8fd3f360b8ec2f3a8ef5001cbca98
Parents: 49c3927
Author: Kenneth Knowles <[email protected]>
Authored: Tue Oct 10 15:53:55 2017 -0700
Committer: Kenneth Knowles <[email protected]>
Committed: Thu Oct 19 19:07:19 2017 -0700

----------------------------------------------------------------------
 .test-infra/jenkins/common_job_properties.groovy | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/beam/blob/241d3ced/.test-infra/jenkins/common_job_properties.groovy
----------------------------------------------------------------------
diff --git a/.test-infra/jenkins/common_job_properties.groovy 
b/.test-infra/jenkins/common_job_properties.groovy
index c6a8b27..2930d74 100644
--- a/.test-infra/jenkins/common_job_properties.groovy
+++ b/.test-infra/jenkins/common_job_properties.groovy
@@ -22,6 +22,8 @@
 //  http://groovy-lang.org/style-guide.html
 class common_job_properties {
 
+  static String checkoutDir = 'src'
+
   static void setSCM(def context, String repositoryName) {
     context.scm {
       git {
@@ -36,6 +38,7 @@ class common_job_properties {
         branch('${sha1}')
         extensions {
           cleanAfterCheckout()
+          relativeTargetDirectory(checkoutDir)
         }
       }
     }
@@ -171,7 +174,7 @@ class common_job_properties {
     // tiered compilation to make the JVM startup times faster during the 
tests.
     context.mavenOpts('-XX:+TieredCompilation')
     context.mavenOpts('-XX:TieredStopAtLevel=1')
-    context.rootPOM('pom.xml')
+    context.rootPOM(checkoutDir + '/pom.xml')
     // Use a repository local to the workspace for better isolation of jobs.
     context.localRepository(LocalRepositoryLocation.LOCAL_TO_WORKSPACE)
     // Disable archiving the built artifacts by default, as this is slow and 
flaky.

Reply via email to