Tag: jenkins

Build project periodically only if changes are found in the repository

I have the following setup active and working: Jenkins with Git and Sonar plugins One jenkins job ( project ) which polls Git each minute One jenkins job ( project-sonar ) which polls git each 24 hours Both jobs share the same git repository. This allows me to build my project for each commit and […]

Jenkins Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)

On Jenkins which is configured on a CentOS server, I am trying to connect to a git repository on another server using username and password. Unfortunately I am getting following error: Failed to connect to repository : Command “/usr/bin/git -c core.askpass=true ls-remote -h ssh://root@[ip addres]:2020/opt/gitrepo/enpapp.git HEAD” returned status code 128: stdout: stderr: Permission denied, please […]

The server rejected the connection: None of the protocols were accepted

I’m facing a weird issue when I launch Jenkins as Windows service in my client VM. 1) I have launched Jenkins as Windows service in my client side master machine (a Windows VM) and configured my local machine as a slave and I’m unable to establish the connection between master and slave. I’m getting the […]

Jenkins Git pull request ${sha1}

I’ve configured Jenkins git pull request plugin according to docs: https://wiki.jenkins-ci.org/display/JENKINS/GitHub+pull+request+builder+plugin but build returns to me ERROR: Couldn’t find any revision to build. Verify the repository and branch configuration for this job. If I leave “Branch Specifier” empty, Jenkinks goes through every PR (even closed) in my repo. How to force it to build only […]

Jenkins Pipeline: is it possible to avoid multiple checkout?

I’ve moved a few old Jenkins jobs to new ones using the pipeline feature in order to be able to integrate the Jenkins configuration within the git repositories. It’s working fine but I’m asking myself if there is a way to reduce the number of checkout that happens while building. Setup I have a Jenkins […]

Git clone on jenkins master, copy to slave

I’ve set up a CI server running jenkins and a slave with a replica of our production environment. I’m running into a pesky little problem though: Jenkins apparently runs git clone on the slave which would mean that every slave should have it’s publickey added to GitHub. To me this sounds like a pretty weird […]

configure git repository in jenkins

I’m trying to configure the repository: https://github.com/javpaw/game-of-life into a job in jenkins using git plugin, but when I put the address of the repository: git@github.com:javpaw/game-of-life.git Source Code Management -> git -> repository Url I got this error: Failed to connect to repository : Command “/usr/bin/git ls-remote -h git@github.com:javpaw/game-of-life.git HEAD” returned status code 128: stdout: stderr: […]

Integration-Manager Git Workflow using Jenkins/Hudson

I’m trying to implement a modified Integration-Manager workflow similar to what’s described in ProGit. Instead of an integration manager performing the merges, I want developers to merge locally before publishing their code, and I want a Quality Gateway that enforces our continuous integration standards, such as a minimum level of code coverage and 100% tests […]

Jenkins Git userContent plugin

I recently tried to install the Git userContent plugin on Jenkins 1.546. After restarting Jenkins the following error occured: hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException at hudson.WebAppMain$3.run(WebAppMain.java:234) Caused by: org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:269) at jenkins.InitReactorRunner.run(InitReactorRunner.java:44) at jenkins.model.Jenkins.executeReactor(Jenkins.java:908) at jenkins.model.Jenkins.<init>(Jenkins.java:807) at hudson.model.Hudson.<init>(Hudson.java:82) at hudson.model.Hudson.<init>(Hudson.java:78) at hudson.WebAppMain$3.run(WebAppMain.java:222) Caused by: java.lang.Error: java.lang.reflect.InvocationTargetException at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:109) at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at […]

unable to install Git plugin in jenkins

i am facing following problem while installing Git plugin in jenkins not sure what needs to be done. java.io.IOException: Failed to dynamically deploy this plugin at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1317) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1116) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:104) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: Failed to install git plugin at hudson.PluginManager.dynamicLoad(PluginManager.java:450) at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1313) … 5 more […]

Git Baby is a git and github fan, let's start git clone.