Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor tweaks to Dockerized Jenkins README #7769

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .test-infra/dockerized-jenkins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ Setting up a local Jenkins instance is useful for testing Jenkins job changes
without affecting the production instance. Using Docker makes the setup very
straightforward.

As of now, this setup allows you to test Job DSL scripts. Imported Beam jobs
will not succeed due to some tools (like gcloud) and credentials missing.
As of now, this setup allows you to test Job DSL scripts. **Imported Beam jobs
will not succeed due to some tools (like gcloud) and credentials missing.**

## Jenkins on Docker

Expand Down Expand Up @@ -94,7 +94,7 @@ http://127.0.0.1:8080. And map jenkins_home of running container to JENKINS_HOME
on your OS file system.

You can setup your Jenkins instance to look like the Apache Beam Jenkins using
[these steps](#beam-config). (Running Beam Job DSL groovy scripts)
[these steps](#running-beam-job-dsl-groovy-scripts). (Running Beam Job DSL groovy scripts)

### Forking your Jenkins instance

Expand All @@ -118,13 +118,13 @@ docker run -p 127.0.0.1:8080:8080 -v ${JENKINS_HOME}:/var/jenkins_home jenkins/j
Jenkins instance will only be available via localhost and not your machine
hostname.

### Running Beam Job DSL groovy scripts {#beam-config}
### Running Beam Job DSL groovy scripts

On Beam we configure Jenkins jobs via groovy job dsl scripts. If you want to run
those on your docker instance of Jenkins, you will need to do some setup on top
of installing default plugins:

1. Install following plugins
1. Make sure the following plugins are installed (Managee Jenkins -> Manage Plugins)
TheNeuralBit marked this conversation as resolved.
Show resolved Hide resolved
1. Environment Injector
1. GitHub pull request build (ghprb)
1. Groovy
Expand All @@ -140,7 +140,7 @@ of installing default plugins:
1. Go to Manage Jenkins -> Configure Global Security
1. Unmark "Enable script security for Job DSL scripts"
1. Set up Job DSL jobs import job. (Seed job)
1. Refer to seedjobconfig.xml for parameters.
1. Refer to [seedjobconfig.xml](./seedjobconfig.xml) for parameters.
1. Go to Jenkins -> New Item -> Freestyle project
1. Build step: Process Job DSLs

Expand Down