Giter Site home page Giter Site logo

github-issues-plugin's Introduction

Jenkins GitHub Issues Plugin

The Jenkins GitHub Issues plugin allows you to create a GitHub issues whenever your build fails. Once the build starts passing again, the issue will automatically be closed.

See the wiki at https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Issues+Plugin for documentation and installation instructions. Report bugs here: http://dl.vc/jenkins-github-issues-bug (you will need to first create a Jenkins account at https://accounts.jenkins.io/)

The documentation below is mainly for developers that want to modify the plugin itself.

Building

Clone this repo and run mvn hpi:run to run a test instance of Jekins.

To package, run mvn package and grab the target/github-issues.hpi file. Run mvn release:prepare release:perform to publish.

Setup

In order to test the plugin in action, you need to create a dummy project in github and configure it either in your settings.xml or in the prepare-developement-workspace profile in your pom.xml.

In your settings.xml add the folling profile:

<profile>
  <id>github-issues-test-repo<id>
  <activation>
    <activeByDefault>true<activeByDefault>
  </activation>
  <properties>
    <github.test.project>https://github.com/YOUR_NAME/DUMMY_REPO/</github.test.project>
  </properties>
</profile>

In order to test the plugins interaction, you also need to create a github token and export it as an environment variable GITHUB_OAUTH_TOKEN. Doing this will help the src/dev/assets/work/init.groovy to setup the github server config on first start.

After you started jenkins using mvn hpi:run, a job test will be created, that will alternate with failure and success.

github-issues-plugin's People

Contributors

daniel15 avatar fsimmend avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

github-issues-plugin's Issues

test #10 failed

Build 'test' is failing!

Last 50 lines of build output:

Started by user anonymous
Building in workspace /Users/mrro/projects/coremedia/github-issues-plugin/work/jobs/test/workspace
[workspace] $ /bin/sh -xe /var/folders/qy/rt1n279167z0ls6ptwxzwh58zv386m/T/hudson6960596991371708845.sh
+ exit 1
Build step 'Execute shell' marked build as failure

View full output

test #3 failed

Build 'test' is failing!

Last 50 lines of build output:

Gestartet durch Benutzer anonymous
Baue in Arbeitsbereich /Users/fsimmend/dev/git/hackathon/github-issues-plugin/work/jobs/test/workspace
[workspace] $ /bin/sh -xe /var/folders/70/10_pzybs6r5g1pm3n7kygszcw041_v/T/hudson8920360251869582216.sh
+ exit 1
Build step 'Shell ausführen' marked build as failure

View full output

test #14 failed

Build 'test' is failing!

Last 50 lines of build output:

Started by user anonymous
Building in workspace /Users/mrro/projects/coremedia/github-issues-plugin/work/jobs/test/workspace
[workspace] $ /bin/sh -xe /var/folders/qy/rt1n279167z0ls6ptwxzwh58zv386m/T/hudson3311757939386695255.sh
+ exit 1
Build step 'Execute shell' marked build as failure

View full output

test #3 failed

Build 'test' is failing!

Last 50 lines of build output:

Gestartet durch Benutzer anonymous
Baue in Arbeitsbereich /Users/fsimmend/dev/git/hackathon/github-issues-plugin/work/workspace/test
[test] $ /bin/sh -xe /var/folders/70/10_pzybs6r5g1pm3n7kygszcw041_v/T/hudson1736870861855311474.sh
+ exit 1
Build step 'Shell ausführen' marked build as failure

View full output

test #6 failed

Build 'test' is failing!

Last 50 lines of build output:

Gestartet durch Benutzer anonymous
Baue in Arbeitsbereich /Users/fsimmend/dev/git/hackathon/github-issues-plugin/work/jobs/test/workspace
[workspace] $ /bin/sh -xe /var/folders/70/10_pzybs6r5g1pm3n7kygszcw041_v/T/hudson8043476680600246378.sh
+ exit 1
Build step 'Shell ausführen' marked build as failure

View full output

test #18 failed

Build 'test' is failing!

Last 50 lines of build output:

Started by user anonymous
Building in workspace /Users/mrro/projects/coremedia/github-issues-plugin/work/jobs/test/workspace
[workspace] $ /bin/sh -xe /var/folders/qy/rt1n279167z0ls6ptwxzwh58zv386m/T/hudson6093961806586045471.sh
+ exit 1
Build step 'Execute shell' marked build as failure

View full output

test #2 failed

Build 'test' is failing!

Last 50 lines of build output:

Started by user anonymous
Building in workspace /Users/mrro/projects/coremedia/github-issues-plugin/work/jobs/test/workspace
[workspace] $ /bin/sh -xe /var/folders/qy/rt1n279167z0ls6ptwxzwh58zv386m/T/hudson8628297829090165952.sh
+ exit 1
Build step 'Execute shell' marked build as failure

View full output

test #6 failed

Build 'test' is failing!

Last 50 lines of build output:

Started by user anonymous
Building in workspace /Users/mrro/projects/coremedia/github-issues-plugin/work/jobs/test/workspace
[workspace] $ /bin/sh -xe /var/folders/qy/rt1n279167z0ls6ptwxzwh58zv386m/T/hudson4652108692775644350.sh
+ exit 1
Build step 'Execute shell' marked build as failure

View full output

test #1 failed

Build 'test' is failing!

Last 50 lines of build output:

Gestartet durch Benutzer anonymous
Baue in Arbeitsbereich /Users/fsimmend/dev/git/hackathon/github-issues-plugin/work/jobs/test/workspace
[workspace] $ /bin/sh -xe /var/folders/70/10_pzybs6r5g1pm3n7kygszcw041_v/T/hudson3256288581519533172.sh
+ exit 1
Build step 'Shell ausführen' marked build as failure

View full output

Custom Title

Build 'test' is failing!

Last 50 lines of build output:

Started by user anonymous
Building in workspace /Users/mrro/projects/coremedia/github-issues-plugin/work/jobs/test/workspace
[workspace] $ /bin/sh -xe /var/folders/qy/rt1n279167z0ls6ptwxzwh58zv386m/T/hudson8965784446172781309.sh
+ exit 1
Build step 'Execute shell' marked build as failure

View full output

Custom Title

Build 'test' is failing!

Last 50 lines of build output:

Started by user anonymous
Building in workspace /Users/mrro/projects/coremedia/github-issues-plugin/work/jobs/test/workspace
[workspace] $ /bin/sh -xe /var/folders/qy/rt1n279167z0ls6ptwxzwh58zv386m/T/hudson5184550409614753962.sh
+ STATUS=1
+ exit 1
Build step 'Execute shell' marked build as failure

View full output

Custom Title

Build 'test' is failing!

Last 50 lines of build output:

Started by user anonymous
Building in workspace /Users/mrro/projects/coremedia/github-issues-plugin/work/jobs/test/workspace
[workspace] $ /bin/sh -xe /var/folders/qy/rt1n279167z0ls6ptwxzwh58zv386m/T/hudson5750570967140033047.sh
+ exit 1
Build step 'Execute shell' marked build as failure

View full output

test #10 failed

Build 'test' is failing!

Last 50 lines of build output:

Started by user anonymous
Building in workspace /Users/mrro/projects/coremedia/github-issues-plugin/work/jobs/test/workspace
[workspace] $ /bin/sh -xe /var/folders/qy/rt1n279167z0ls6ptwxzwh58zv386m/T/hudson933194363132247320.sh
+ exit 1
Build step 'Execute shell' marked build as failure

View full output

test #1 failed

Build 'test' is failing!

Last 50 lines of build output:

Started by user anonymous
Building in workspace /Users/dzabel/IdeaProjects/devops/github-issues-plugin/work/jobs/test/workspace
[workspace] $ /bin/sh -xe /var/folders/c4/f5dwb6x15pg0l2gz_fvcgvpdhjrnqj/T/hudson3848333839576720212.sh
+ exit 1
Build step 'Execute shell' marked build as failure

View full output

test #2 failed

Build 'test' is failing!

Last 50 lines of build output:

Started by user anonymous
Building in workspace /Users/mrro/projects/coremedia/github-issues-plugin/work/jobs/test/workspace
[workspace] $ /bin/sh -xe /var/folders/qy/rt1n279167z0ls6ptwxzwh58zv386m/T/hudson176622902757925787.sh
+ exit 1
Build step 'Execute shell' marked build as failure

View full output

test #2 failed

Build 'test' is failing!

Last 50 lines of build output:

Started by user anonymous
Building in workspace /Users/dzabel/IdeaProjects/devops/github-issues-plugin/work/jobs/test/workspace
[workspace] $ /bin/sh -xe /var/folders/c4/f5dwb6x15pg0l2gz_fvcgvpdhjrnqj/T/hudson7920232953881440212.sh
+ exit 1
Build step 'Execute shell' marked build as failure

View full output

test #1 failed

Build 'test' is failing!

Last 50 lines of build output:

Gestartet durch Benutzer anonymous
Baue in Arbeitsbereich /Users/fsimmend/dev/git/hackathon/github-issues-plugin/work/workspace/test
[test] $ /bin/sh -xe /var/folders/70/10_pzybs6r5g1pm3n7kygszcw041_v/T/hudson8058824851240730202.sh
+ exit 1
Build step 'Shell ausführen' marked build as failure

View full output

test #2 failed

Build 'test' is failing!

Last 50 lines of build output:

Started by user anonymous
Building in workspace /Users/mrro/projects/coremedia/github-issues-plugin/work/jobs/test/workspace
[workspace] $ /bin/sh -xe /var/folders/qy/rt1n279167z0ls6ptwxzwh58zv386m/T/hudson1493943915129509999.sh
+ exit 1
Build step 'Execute shell' marked build as failure

View full output

Custom Title

Build 'test' is failing!

Last 50 lines of build output:

Started by user anonymous
Building in workspace /Users/mrro/projects/coremedia/github-issues-plugin/work/jobs/test/workspace
[workspace] $ /bin/sh -xe /var/folders/qy/rt1n279167z0ls6ptwxzwh58zv386m/T/hudson505083244271163215.sh
+ exit 1
Build step 'Execute shell' marked build as failure

View full output

test #2 failed

Build 'test' is failing!

Last 50 lines of build output:

Started by user anonymous
Building in workspace /Users/dzabel/IdeaProjects/devops/github-issues-plugin/work/jobs/test/workspace
[workspace] $ /bin/sh -xe /var/folders/c4/f5dwb6x15pg0l2gz_fvcgvpdhjrnqj/T/hudson8110950155589489940.sh
+ exit 1
Build step 'Execute shell' marked build as failure

View full output

test #2 failed

Build 'test' is failing!

Last 50 lines of build output:

Started by user anonymous
Building in workspace /Users/mrro/projects/coremedia/github-issues-plugin/work/jobs/test/workspace
[workspace] $ /bin/sh -xe /var/folders/qy/rt1n279167z0ls6ptwxzwh58zv386m/T/hudson1940707902836000973.sh
+ exit 1
Build step 'Execute shell' marked build as failure

View full output

Custom Title

Build 'test' is failing!

Last 50 lines of build output:

Started by user anonymous
Building in workspace /Users/mrro/projects/coremedia/github-issues-plugin/work/jobs/test/workspace
[workspace] $ /bin/sh -xe /var/folders/qy/rt1n279167z0ls6ptwxzwh58zv386m/T/hudson550978631487464682.sh
+ exit 1
Build step 'Execute shell' marked build as failure

View full output

test #3 failed

Build 'test' is failing!

Last 50 lines of build output:

Started by user anonymous
Building in workspace /Users/dzabel/IdeaProjects/devops/github-issues-plugin/work/jobs/test/workspace
[workspace] $ /bin/sh -xe /var/folders/c4/f5dwb6x15pg0l2gz_fvcgvpdhjrnqj/T/hudson3424985962712876527.sh
+ exit 1
Build step 'Execute shell' marked build as failure

View full output

test #2 failed

Build 'test' is failing!

Last 50 lines of build output:

Gestartet durch Benutzer anonymous
Baue in Arbeitsbereich /Users/fsimmend/dev/git/hackathon/github-issues-plugin/work/jobs/test/workspace
[workspace] $ /bin/sh -xe /var/folders/70/10_pzybs6r5g1pm3n7kygszcw041_v/T/hudson5216824504410917530.sh
+ exit 1
Build step 'Shell ausführen' marked build as failure

View full output

test #2 failed

Build 'test' is failing!

Last 50 lines of build output:

Started by user anonymous
Building in workspace /Users/mrro/projects/coremedia/github-issues-plugin/work/jobs/test/workspace
[workspace] $ /bin/sh -xe /var/folders/qy/rt1n279167z0ls6ptwxzwh58zv386m/T/hudson1283074596997982189.sh
+ exit 1
Build step 'Execute shell' marked build as failure

View full output

test #6 failed

Build 'test' is failing!

Last 50 lines of build output:

Started by user anonymous
Building in workspace /Users/mrro/projects/coremedia/github-issues-plugin/work/jobs/test/workspace
[workspace] $ /bin/sh -xe /var/folders/qy/rt1n279167z0ls6ptwxzwh58zv386m/T/hudson5046731165552686255.sh
+ exit 1
Build step 'Execute shell' marked build as failure

View full output

test #6 failed

Build 'test' is failing!

Last 50 lines of build output:

Started by user anonymous
Building in workspace /Users/mrro/projects/coremedia/github-issues-plugin/work/jobs/test/workspace
[workspace] $ /bin/sh -xe /var/folders/qy/rt1n279167z0ls6ptwxzwh58zv386m/T/hudson6614220141038300191.sh
+ exit 1
Build step 'Execute shell' marked build as failure

View full output

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.