Giter Club home page Giter Club logo

jenkins-demo's Introduction

Jenkins Helix4Git demo

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

Windows Users

If running Windows there are a couple of extra steps that must be done before getting started on this. Firstly git must be configured to not automatically convert the line endings to Windows format when cloning the repositry. Secondly docker must also be set to automatically convert Windows paths. Within the coommand prompt this is being run within, run these commands:

  1. git config --global core.autocrlf true
  2. set COMPOSE_CONVERT_WINDOWS_PATHS=1

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...

Services

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:admin@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

msmeeth56 avatar p4paul avatar rcowham avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.