Git Product home page Git Product logo

workflowlibs's Introduction

Beedemo Pipeline Shared Library

Pipeline Shared Library for SA Jenkins demo environments.

For more information on setting up and using Pipeline Global Libraries please see the documentation on GitHub: https://github.com/jenkinsci/workflow-cps-global-lib-plugin.

It is good practice to maintain your Pipeline Global Libraries in an external SCM, in addition to pushing to the Jenkins hosted workflowLibs Pipeline Global Library Git repoisitory. This also helps to manage sharing a Pipeline Global Library across multipe masters. Also, you could use a script such at this one to pull in externally managed Pipeline Global Libraries to the embedded Pipeline Global Library Git repository.

Pipline Global Libraries may be configured at the master, folder or job level.

Global Steps

mavenProject

Provides a template for maven builds. Additionally, it provides automated creation/updates of customized build images using docker commit to include caching all maven dependencies inside of the repo specific custom build image; dramatically speeding up build times.

configuration:
  • mavenProject: provides simple config as Pipeline for maven based projects
    • org: GitHub organization or user repo is under
    • repo: GitHub repository being built
    • hipChatRoom: id or name of HipChat room to send build messages
    • jdk: version of JDK to use for build as string value
    • maven: version of Maven to use for build as string value
    • rebuildBuildImage: boolean that controls whether or not to refresh existing repo specific Docker build image based on the `maven' image
    • protectedBranches: allows to specify name(s) of branch(es) to protected and use Jenkins to control status, uses the githubProtrectBranch step documented below
Example:
	mavenProject {
		org = 'sa-team'
		repo = 'todo-api'
		hipChatRoom = '1613593'
		jdk = '8'
		maven = '3.3.3'
		rebuildBuildImage = true
		protectedBranches = ['master']
	}

githubProtectBranch

Uses the GitHub API to set up protected branches on repository being built.

configuration:
  • githubProtectBranch: sets protection status of rep branch(es)
    • branches: list of strings specifying branches to set protected status on
    • API URL: GitHub API URL to use
    • Credentials ID: ID of GitHub username/password credentials set to use from Jenkins
    • org: org/user of repo - for example sa-demo in sa-demo/todo-api
    • repo: name of repo of branch
Example:
githubProtectBranch(['master','feature-one'],
  'https://github.enterprise.com/api/v3',
  '3ebff2f8-1013-42ff-a1e4-6d74e99f4ca1',
  'sa-team',
  'todo-api')

workflowlibs's People

Contributors

beedemo-admin avatar kmadel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

workflowlibs's Issues

License

Would it be possible to add a license file to this repo?

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.