This is an automated email from the ASF dual-hosted git repository.

mikhail pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 7f66c22  [BEAM-8022] Add new section in Dockerized Jenkins README
     new 098c11f  Merge pull request #9392 from kamilwu/seed-job-from-local-git
7f66c22 is described below

commit 7f66c223ea14164f7e9fd302c1c346ce9c2411e2
Author: Kamil Wasilewski <kamil.wasilew...@polidea.com>
AuthorDate: Wed Aug 21 14:49:44 2019 +0200

    [BEAM-8022] Add new section in Dockerized Jenkins README
---
 .test-infra/dockerized-jenkins/README.md | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/.test-infra/dockerized-jenkins/README.md 
b/.test-infra/dockerized-jenkins/README.md
index 78874e2..fc1178e 100644
--- a/.test-infra/dockerized-jenkins/README.md
+++ b/.test-infra/dockerized-jenkins/README.md
@@ -144,6 +144,29 @@ of installing default plugins:
     1.  Go to Jenkins -> New Item -> Freestyle project
     1.  Build step: Process Job DSLs
 
+## Additional Jenkins hints
+
+### Importing DSL jobs from a local git repository
+
+By default, Seed job imports DSL job definitions from the Apache Beam Github
+repository. But there is also a possibility to import these definitions from 
+your local git repository, which makes testing much easier because you don't 
+have to git push every time changes were made. 
+
+1. Build Jenkins image using provided scripts.
+1. Provide an environment variable *BEAM_HOME* pointing to the beam root
+   directory, for example: `export BEAM_HOME=~/my/beam/directory`.
+1. Run image using the following command: `docker run -d -p 127.0.0.1:8080:8080
+   -v $BEAM_HOME:/var/jenkins_real_home/beam:ro beamjenkins`. The only 
difference is
+   the *-v* option which sets up a bind mount. 
+1. Sign in to Jenkins.
+    1. Go to the *sample_seed_job* and open its configuration. Scroll down to
+       the **Source Code Management** section.
+    1. Fill the **Repository URL** field with 
*file:///var/jenkins_real_home/beam*.
+
+You can choose any branch from your local repo. Just remember that all changes
+must be committed. You don’t have to checkout the branch you chose.
+
 ## Additional docker hints
 
 ### Running image vs starting container

Reply via email to