Code Monkey home page Code Monkey logo

jenkins-demo's Introduction

Jenkins Helix4Git demo

A simple example storing several Git repositories in a Helix server along with Perforce content.

Instructions

You will need docker and docker-compose to run this demo. You can get Docker here for Mac or Windows.

  1. Clone the demo: git clone https://github.com/p4paul/jenkins-demo.git
  2. Change into the cloned directory: cd jenkins-demo
  3. Bring up the instances: docker-compose up
  4. Wait for the machines to start...
  5. Open Jenkins in a browser at http://localhost:4040

Usage

Login to Jenkins with user 'admin', password 'admin'.

Git is running https on port 4443; for example, to clone use:

git -c http.sslVerify=false clone https://admin:Passw0rd@localhost:4443/plugins/p4-plugin

(the -c http.sslVerify=false is needed as the demo does not use a Certificate)

Perforce is on port 4000 with user 'admin' and no password set. For example, to list repos use:

p4 -u admin -p localhost:4000 repos

Graph Hybrid demo

This demonstrates how to uses a Stream to combine Git imported repositories and Helix Streams in a single project. The project is based on the Jenkins p4-plugin and demonstrates how sync graph content and pin it to a tag.

Just build the Jenkins job graph-hybrid-demo.

Graph Trigger demo

This demonstrates how to trigger a Jenkins Job containing git content synced from a Helis graph. The Jenkins job docker-trigger-demo is pre-configured, however you will need to push git content into Perforce and run an initial build.

  1. Clone the docker plugin to a local directory git clone https://github.com/jenkinsci/docker-plugin.git
  2. Change directory cd docker-plugin
  3. Add remote git remote add helix https://localhost:4443/plugins/docker-plugin.git
  4. Push repo git push -u helix master
  5. Build Jenkins job docker-trigger-demo (this should pass)
  6. Trigger Jenkins job by make a change to the local git repo, commit and push.

jenkins-demo's People

Contributors

p4paul avatar msmeeth56 avatar rcowham avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.