Tag: jenkins

Package multiple publish profiles .pubxml after a successful build in Jenkins CI

I’m using Jenkins for Continuous Integration. Right now I have a job with this command in Jenkins in the command line arguments for a build step: This is the command: “%WORKSPACE%\OEVizion\ITVizion.OEVizion.Web\ITVizion.OEVizion.Web.csproj” /p:DeployOnBuild=true /p:PublishProfile=”IT Vizion – Web Deploy Package for a given domain.pubxml” It works just fine, that is, the web deploy package (.zip) is created […]

Conditional OR for multiple Jenkins parameters

I’m looking for a way of handling multiple parameters within a Jenkins job. My build can either be triggered by a push to Gitlab or manually. Gitlab passes ${gitlabSourceBranch} as a parameter containing the branch it has received a push for. My branches to build setting is currently set to origin/${gitlabSourceBranch}. Works like a charm […]

python – how to get branch name from a specific build from jenkins?

We use Git, jenkins and python at office. We build a new SW version on a daily basis using jenkins. How can I get the branch name to which the build belongs using Python from Jenkins? Is there any API (function call) in Jenkins that can I give the build number as an argument, and […]

Jenkins : stderr: Permission denied (publickey). fatal: The remote end hung up unexpectedly

I am hosting Jenkins on a virtual machine(redhat). I am able to setup jenkins system on it and able to access jenkins. But on manage jenkins page while creating any build job, when I giv my git repository link, I am getting this error – Failed to connect to repository : Command “git ls-remote -h […]

should I use tags or branches? Which is better for tracking your source code in Git of every nightly build with Jenkins

I would like to know the experience of others and what would be the better strategy. I am supposing that branching is not that good, because of the space usage.

How to tag a build in Jenkins/Maven/Git

I have a build setup in Jenkins, which compiles a simple Git hosted Maven project into a jar and publishes the jar into Artifactory. How can I setup the build job to tag the sources which were used for the build with e.g. a build number (or similar), in order to later be able to […]

Jenkins – (private subnet) WebHook with Github does not trigger automatic build

Problem : I am working on a CI setup to configure github – Jenkins web hook for triggering builds with code commits on github. Below are the current configuration details My Jenkins is inside an AWS private subnet I have plugin: “GitHub Web Hook” configured with API URL, Username and OAuth token, Test Credentials gives […]

How to add Bitbucket repository in to jenkins?

I have a ruby on rails code in bitbucket private repository. And i have added my repository remote into jenkins as follows: https://bitbucket.org/myuser_name/demo_app followed by Credentials: Kind: username and password and i have given bitbucket username and password into it. Before i am saving the project configuration i got no error under Repository URL. So […]

Get the title of a Pull Request from command line

I’m writing a continuous integration step that checks the titles of our pull requests for proper tags and formatting before allowing them to be merged. To do this, I need to echo the title of the Pull Request when given the PR number. Is there a way to do this simply in command line?

Jenkins pipeline environment variables

I’m new to Jenkins jobs and I can’t seem to figure out how to use global environment variables. I need to find the branch name that my Jenkinsfile is in. I have only placed it in a feature branch because I’m still testing it out, and I have that feature branch specified in the config […]

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