jenkinsci/pipeline-as-code-github-demo
Demonstration of Jenkins 2.0 “Pipeline-as-Code” using GitHub.
1.7K
Demo of GitHub Organization, multibranch projects, and pull requests.
To run the demo:
WORKSPACE=/tmp/demows docker run --rm -p 8080:8080 -p 4040:4040 -v /var/run/docker.sock:/var/run/docker.sock -v $WORKSPACE:$WORKSPACE -e WORKSPACE=$WORKSPACE -ti jenkinsci/pipeline-as-code-github-demo
repo:status
and public_repo
cloudbeers
).multibranch.*
multibranch-demo
, under that one or more branches including master
, and under each a successful build #1http://SOMETHING.ngrok.io/github-webhook/
(look at the Docker log for the specific hostname). Remember to clean up your webhook when the demo is doneThe image needs to run Docker commands, so it assumes that your Docker daemon is listening to /var/run/docker.sock
(discussion). This is not “Docker-in-Docker”; the container only runs the CLI and connects back to the host to start sister containers. The run
target also makes reference to file paths on the Docker host, assuming they are where you are running that command, so this target cannot work on boot2docker. There may be some way to run this demo using boot2docker; if so, please contribute it.
docker pull jenkinsci/pipeline-as-code-github-demo