Skip to content

minichate/git-try

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

git-try

git-try is a command that will generate a diff against the latest origin/master and submit that patch as a parameter to Jenkins.

See https://codeascraft.com/2011/10/11/did-you-try-it-before-you-committed/ for motivations and inspirations

Installation

Move the git-try file to /usr/local/bin/git-try

Usage

bash$ git try

Options

When first used, git-try will prompt for a few pieces of information:

Jenkins Configuration

You'll need a job on Jenkins that runs your unit tests (or whatever other build/test steps you'd like the git-try command to run). Furthermore, you'll need to configure a File Parameter named patchfile.

Image of configuration

At the beginning of your jobs build steps, you'll want to apply the patch:

#!/bin/bash

git apply patchfile

# your other build steps follow

About

Try server command for git

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages