Tag: jenkins

How to create new git branch with jenkins shell

I would like to reach the following: In some jenkins job, create a new branch from dev-branch do some changes on the new created branch new-branch push the new created branch to git repo I did the following steps in Jenkins: I have configured my git repo in the section “Source Code Management” and also […]

git commits into html filr through jenkins

I am passing a HTML file through Jenkins from build to production servers. I am injecting the build number into the HTML file using perl. Now I also want to inject the git commits into the HTML page. The below is how I injected build number in place of the {BUILD_VERSION} in the HTML page. […]

Jenkins Version Number Format Substring

I am using the Jenkins Version Number Plugin. I have the following Version Number Format String in my Git/Maven project: #${BUILDS_ALL_TIME} – ${POM_VERSION} – ${GIT_BRANCH} This results in: However, I want a substring of GIT_BRANCH that results in the output: #42 – 1.4.2-SNAPSHOT – master In other words, I just want a GIT_BRANCH of master […]

Disable “Accept Merge Request” button based on GitLab CI status and/or SonarQube results

I am using GitLab, Jenkins and SonarQube. All tools are with Free licences. Currently we are having a need to implement more strict control over Git(Labs) Merge Request functionality based on “external” tools / plugins. I am now trying to figure out how to implement the behaviour that would do the following: listen to Jenkins […]

Creating Maven assembly with files from different Git branches

We are working on a project in which we are using a number of Git branches with different content in each branch. We need to create .zip file using maven plugin in Jenkins with files from different branches. Is there any option available in Jenkins which supports this task? Thanks in advance

Windows Jenkins Git will not clone, only fetch

Running Jenkins on a Windows 7×64 box. Have Git Plugin, SSH configured, etc. Problem is the following, and I cannot for the life of me find other references to the same problem. The Git plugin is executing against a bare repository (ending with .git), the commandline being generated by Jenkins is always using the “fetch” […]

Jenkins “git command not found”

I have a project where build script using some git operations but my job fzailing due to it. I have added git executable in slave’s tools locations(using following combinations) but it’s still failing C:\Program Files (x86)\Git\bin ‘C:\Program Files (x86)\Git\bin\’ C:\Program Files (x86)\Git\bin\git.exe “C:\Program Files (x86)\Git\bin\git.exe” ‘C:\Program Files (x86)\Git\bin\git.exe’ java –version git –version Java worked but […]

A script to merge the last successful build in jenkins from a development branch to a release branch using GIT

Description: Stability and automating function. Every 2-3 hours Jenkins try to push a build. Estimating around 8 build every 2-3 hours. Jenkins will know if there is a good or bad code once the dev build is done. Need to get the good builds and merge it with the code and exclude the bad one.

Jenkins – Setting up local Git repository for simple HelloWorld test

If someone could give me some guidance on this it would be much appreciated! I’ve seen similar questions asked on here before but I can’t seem to find an answer or get my head around the process. What I want to do is set up a Git repository in which 2 Java files are located […]

Trigger Jenkins job on GitHub PUSH to specific branch

I’m trying to trigger a job based on a GitHub PUSH to a certain branch. I set up a webhook to JENKINS_URL/git/notifyCommit?url=REPO_URL and Poll SCM without schedule. The job is being triggered for every push but I cannot filter out the branch – I’d like it to only happen when there’s a push to master.

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