Questions tagged [jenkins]

Jenkins is an open source continuous integration tool written in Java, that has packages for Linux, Mac OS X, Windows, FreeBSD and OpenBSD. The project was forked from Hudson.

The Jenkins project started life as in 2004, but the user and developer community decided to rename the project to Jenkins in early 2011 after asserted trademark claims to the name Hudson (see for questions related to the previous name).

Jenkins lets you automate many tasks, such as compilation, tests and deployments. Jobs can be scheduled using cron-like scheduling, or using triggers, such as whenever a source code repository is updated.

Jenkins is Java-based and recent versions require Java 8 (or later) on the master. The Jenkins master can manage multiple build nodes (slaves). Jobs can be run across multiple machines in order to perform jobs in parallel, distribute load, or build and test cross-platform software. Capacity can be easily added — Jenkins can automatically set up a new build slave on any SSH-accessible machine; it can even launch new machines to run jobs on, e.g. via cloud-computing or virtualisation plugins.

Jenkins supports a long list of plugins in a wide variety of categories to support different source control systems, run specialised build tools, send notifications, provide build reports and analytics, customise build workflows, etc. Many are hosted as open source under the Jenkins organisation on GitHub.

Jenkins is an open-source project with an enhanced enterprise product managed by CloudBees. The open source software is hosted on GitHub and distributed under the MIT license. There is an active development community with public documentation, getting started tutorials and a wiki. A new version is released approximately once a week, with more stable "long-term support" releases roughly every six months.

50386 questions
13
votes
1 answer

GitHub required status checks from Jenkins for forks vs local branches

I have a GitHub repository established with a Multibranch Pipeline job in Jenkins, and until now have been content to require the continuous-integration/jenkins/branch status check, as Jenkins posts when building a local branch from the repo.…
Nick Jones
  • 4,395
  • 6
  • 33
  • 44
13
votes
1 answer

How to make tqdm play nice with jenkins?

Love tqdm progress bar, but when I use it on jenkins, I keep getting a bunch of weird artifacts and too much bloat in stdout (specifically, omnipresence of [A). Is there a secret mode in tqdm to make it work nicely with jenkins? Bonus points for…
Oleksiy
  • 6,337
  • 5
  • 41
  • 58
13
votes
4 answers

Bitbucket Server Webhook to Jenkins: Error: Jenkins response: No git jobs using repository

I've installed Webhook to Jenkins for Bitbucket plugin in bitbucket server. The main goal is that a jenkins build will be triggered after a commit. After the install I've enabled the plugin: jenkins-url: https://url/jenkins ssh: ssh@git.. (same…
DenCowboy
  • 13,884
  • 38
  • 114
  • 210
13
votes
1 answer

Is it possible to run a jenkinsfile from a freestyle project

I have a freestyle project on Jenkins. I'm trying to add in that the build runs a Jenkins pipeline (Jenkinsfile) as a step. We currently use Jenkins steps to run our builds but are looking to move towards fully automating everything with pipelines,…
kicksticks
  • 239
  • 3
  • 14
13
votes
4 answers

Jenkins declarative pipeline conditional post action

I am using Jenkins declarative pipeline and want to perform some post build actions depending on the build status. To be more precise, I want to send an email when the build status changed (from success to failure, or success to unstable, or failure…
Mikael Gibert
  • 355
  • 1
  • 3
  • 8
13
votes
3 answers

launch a sonar analysis for the code of a pullRequest with Jenkinsfile and maven

Currently on my project, each pull-Request on the organization-repository are build automatically by Jenkins, as specified in a jenkinsfile. When the build end, a message in send by Jenkins to github with the status of the build of this project. I…
sab
  • 4,352
  • 7
  • 36
  • 60
13
votes
3 answers

Jenkins Pipeline - How do I use the 'tool' option to specify a custom tool?

I have a custom tool defined within Jenkins via the Custom Tools plugin. If I create a freestyle project the Install custom tools option correctly finds and uses the tool (Salesforce DX) during execution. However, I cannot find a way to do the same…
jupiter22
  • 167
  • 1
  • 1
  • 11
13
votes
1 answer

How can I add software or other packages to a docker container?

I have pulled jenkins container from docker hub like this: docker pull jenkins The container runs and I can access Jenkins UI in : http://localhost:8080 My question is: If I want to be able to create a jenkins job that pulls from a github repo…
David
  • 1,469
  • 5
  • 33
  • 51
13
votes
3 answers

Permission denied error invoking Docker on Mac host from inside Docker Ubuntu container as non-root user

I'm trying to invoke docker on my OSX host running Docker for Mac 17.06.0-ce-mac17 from inside a running jenkins docker container (jenkins:latest), per the procedure described at…
mxyzplk
  • 254
  • 1
  • 2
  • 10
13
votes
2 answers

Grouping and decorating groups of parameters in Jenkins

I'm writing a Jenkins pipeline job with quite a few parameters and I'm looking for a way to visually group them together so they will be easier to understand -rather than have them all just thrown in there. I'll settle for anything that at least…
Mig82
  • 4,856
  • 4
  • 40
  • 63
13
votes
4 answers

Install Jenkins slave as a Windows service in command line

I have been looking a lot on Google on how to install the service in command line (so without manual interaction) but I am stuck on how to get the jenkins-slave.exe I found those instruction…
Maxime
  • 1,095
  • 1
  • 11
  • 20
13
votes
1 answer

Can I import a groovy script from a relative directory into a Jenkinsfile?

I've got a project structured like this: / / Jenkinsfile / build_tools / / pipeline.groovy # Functions which define the pipeline / reporting.groovy # Other misc build reporting stuff / dostuff.sh # A shell…
Salim Fadhley
  • 6,975
  • 14
  • 46
  • 83
13
votes
2 answers

Jenkins Amazon ECR Plugin login issue "Authorization Token has expired"

I've followed the instructions on the Amazon ECR Plugin (https://wiki.jenkins-ci.org/display/JENKINS/Amazon+ECR, which simply instructs a user to install the Amazon ECR configure the Docker Build & Deploy plugin), but Jenkins is unable to…
13
votes
1 answer

How can I isolate my Jenkins pipeline Groovy shared library classloader?

I have a Groovy library made available as a Global shared library: package com.example @Grab(group="org.apache.httpcomponents", module="httpclient", version="[4.5.3,)") import org.apache.http.HttpHost import…
Patrick
  • 5,714
  • 4
  • 31
  • 36
13
votes
3 answers

Create Jenkins Docker Image with pre configured jobs

I have created a bunch of Local deployment pipeline jobs, these jobs do things like remove an existing container, build a service locally, build a docker image, run the container - etc. These are not CI/CD jobs, just small pipelines for deploying…
Tim Jarvis
  • 18,465
  • 9
  • 55
  • 92