Hi Dit, One really easy way to get this working is using Pipeline. We've released a new version of Pipeline recently with use case driven documentation that is aimed to get people started quickly.
With Pipeline you checkin a *Jenkinsfile* into the root of your Git repository to control how the build is run. I've provided an example from the simple quick start guide on the wiki <https://github.com/jenkinsci/pipeline-model-definition-plugin/wiki/Getting-Started#java> below. The quick start example uses Docker to provide a Maven and Java 8 environment to run the build in (I very much recommend giving it a try). If you don't want to use Docker, there are a few other options to look at <https://github.com/jenkinsci/pipeline-model-definition-plugin/wiki/Controlling-your-build-environment> . I hope this is useful to you! pipeline { agent docker:'maven:3.3.3' stages { stage('build') { sh 'mvn --version' sh 'mvn install' } } } On Monday, September 5, 2016 at 4:45:53 AM UTC+10, dit. k wrote: > > After 2 days of configuration nightmare of jenkins I have to give up and > hope the community can help me... > > I just want to create a simple job with this tasks: > > 1. If I click on "Build" jenkins clones my project from private > repsitory on github > 2. then, project should be compiled (maven) > 3. execute junit-test > > I don't understand why the configuration should be so complicated. I'm > using jenkins 2.3.7 and all tutorials I found are deprecated. > > Any tips how to connect jenkins with github? > > regards > dit > > > > > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/48b6ef9a-eb8a-4ddf-b7c5-61c50b58670d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.