Tag: jenkins

Using Multiple git URLs in the same Jenkins job

I am using git repositories in my Jenkins jobs. Now I would like to use second git URL for one of my new jobs. Can I use it? Will it create any problems in my existing setup or workspace? Any suggestions are welcome.

Jenkins Plugin failure error

I’m getting failure message on adding Plugin , will anybody tell me why I’m getting this error: hudson.util.IOException2: Failed to download from http://updates.jenkins-ci.org/download/plugins/credentials/2.1.4/credentials.hpi (redirected to: http://ftp.tsukuba.wide.ad.jp/software/jenkins/plugins/credentials/2.1.4/credentials.hpi) at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:822) at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1184) at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1365) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1162) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.IOException: Inconsistent file length: expected 928684 but only got 884511 at […]

Jenkins SCM Sync Configuration Plugin not working

I installed SCM Sync configuration plugin. I created repository to keep backups of jenkins jobs. In the created jobs, in bookmark Source Code Management I gave Repository URL and Credentials. After job which has been succeeded I haven’t seen any commits in repository. Only this alert appeared in the bottom right corner: “SCM Sync status […]

“fatal: bad object” when calling `git diff-tree` via groovy script?

I would like to trigger a Jenkins build automatically when there is a push to Github. Moreover, based on the branch and modified files, I want to send a different function’s args to the SaltStack API and run on a different target VMs. Here’s my code at the “Build environment” – “Inject environment variables to […]

Jenkins gerrit trigger couldn't find any revision to build

I am stuck with the problem i have with Gerrit trigger plugin for Jenkins Earlier all was ok but suddenly build broke, configuration did not changed. Here is the log i have. Building in workspace /var/lib/jenkins/jobs/Jobname/workspace > git rev-parse –is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url ssh://username@testserver.com:29418/test # […]

Jenkins hangs during git clone on windows slave

Jenkins has recently starting hanging during builds on our windows slaves. It gets as far as trying to fetch the tags and never proceeds beyond that. Log: [EnvInject] – Loading node environment variables. Started by an SCM change [EnvInject] – Preparing an environment for the build. [EnvInject] – Keeping Jenkins system variables. [EnvInject] – Keeping […]

auto deployment of code in jenkins based on git in assembla

I am able to configure jenkins with the git repository. I want to perform an auto deployment when ever there is any push done into the git repository. I am using git repository provided by assembla. I followed the given link “https://wiki.jenkins-ci.org/display/JENKINS/Assembla+Merge+Request+Builder+Plugin”. But I was not able to deploy the code on push command. I […]

ls-remote causes a timeout and returns error code -1 when polling a git server through jenkins

I am trying to configure a Jenkins Server (ver 1.656) to trigger build on commit notification, but every polling scheduled or triggered after the notification received by Jenkins keeps timing out : Started on 12.07.2016 13:49:39 Using strategy: Default [poll] Last Built Revision: Revision 5d9aca316442628a4a4232f0d91db4aa364097c8 (refs/remotes/origin/<mybranch>) using .gitcredentials to set credentials > git.exe –version # […]

Eclipse Git – Making changes at the same time

This is probably a noob question, as I only started using Eclipse Git a few days ago. I was wondering if it was, in any way, possible to have multiple people working on different files in a repository but, when ready to commit, only have one commit for all, instead of one commit per person…? […]

Howto fetch additonal remote git branch in jenkins pipeline

I want to do the following in jenkins: Checkout/clone my git repostiory in branch1 Fetch branch2 (which is ahead of branch1) Get all commiting users between branch1 and branch2 I am using a pipeline. So I do the checkout with: git branch: ‘branch1’, credentialsId: ‘XXX’, url: ‘XXX’ Now, I want to additionaly fetch ‘branch2’, I […]

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