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
179
votes
21 answers

How to solve npm install throwing fsevents warning on non-MAC OS?

Following warning is being thrown on npm install command - npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules\rea ct-scripts\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for…
Sandeepan Nath
  • 9,966
  • 17
  • 86
  • 144
171
votes
8 answers

How to uninstall Jenkins?

This is probably very simple, but I can't find any hint anywhere. So how one is supposed to do that, in general and specifically on Mac?
jayarjo
  • 16,124
  • 24
  • 94
  • 138
169
votes
14 answers

don't fail jenkins build if execute shell fails

As part of my build process, I am running a git commit as an execute shell step. However, if there are no changes in the workspace, Jenkins is failing the build. This is because git is returning an error code when there are no changes to commit. …
Ben
  • 16,124
  • 22
  • 77
  • 122
168
votes
8 answers

Jenkinsfile syntax highlighting in Java project using IntelliJ IDEA

We already tried the approaches as listed below: https://github.com/oliverlockwood/jenkinsfile-idea-plugin https://st-g.de/2016/08/jenkins-pipeline-autocompletion-in-intellij After having searched the web for many hours on multiple days, we still…
rexford
  • 5,192
  • 5
  • 27
  • 40
166
votes
6 answers

How to move an existing job from one view to another in Jenkins?

I want to move an existing job from one view to another but I can't find the way. Is the only way to copy the job and delete it from the other view? I would like to have the same name and for my experience Jenkins doesn't handle very well the…
enkara
  • 6,189
  • 6
  • 34
  • 52
161
votes
17 answers

"User interaction is not allowed" trying to sign an OSX app using codesign

Our automated build is running on Jenkins. The build itself is running on slaves, with the slaves being executed via SSH. I get an error: 00:03:25.113 [codesign-app] build/App.app: User interaction is not allowed. I have tried every suggestion I…
Hakanai
  • 12,010
  • 10
  • 62
  • 132
159
votes
6 answers

Python unittests in Jenkins?

How do you get Jenkins to execute python unittest cases? Is it possible to JUnit style XML output from the builtin unittest package?
erikbstack
  • 12,878
  • 21
  • 81
  • 115
155
votes
5 answers

Conditional step/stage in Jenkins pipeline

How do you run a build step/stage only if building a specific branch? For example, run a deployment step only if the branch is called deployment, leaving everything else the same.
Devonte
  • 3,319
  • 5
  • 20
  • 15
154
votes
8 answers

Jenkins CI Pipeline Scripts not permitted to use method groovy.lang.GroovyObject

I am Using Jenkins 2 for compiling Java Projects, I want to read the version from a pom.xml, I was following this example: https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md The example suggest: It seems that there is some…
Daniel Hernández
  • 4,078
  • 6
  • 27
  • 38
154
votes
20 answers

How to list all `env` properties within jenkins pipeline job?

Given a jenkins build pipeline, jenkins injects a variable env into the node{}. Variable env holds environment variables and values. I want to print all env properties within the jenkins pipeline. However, I do no not know all env properties ahead…
JamesThomasMoon
  • 6,169
  • 7
  • 37
  • 63
153
votes
9 answers

Checkout multiple git repos into same Jenkins workspace

Using Jenkins 1.501 and Jenkins Git plugin 1.1.26 I have 3 different git repos each with multiple projects. Now I need to checkout all projects from the 3 git repos into the same workspace on a Jenkins slave. I have defined each git repo in: Source…
u123
  • 15,603
  • 58
  • 186
  • 303
147
votes
6 answers

Checkout Jenkins Pipeline Git SCM with credentials?

I was following this tutorial: node { git url: 'https://github.com/joe_user/simple-maven-project-with-tests.git' ... } However it doesn't tell how to add credentials. Jenkins does have specific "Credentials" section where you define user…
Render
  • 2,199
  • 2
  • 16
  • 14
147
votes
14 answers

Jenkins: Is there any way to cleanup Jenkins workspace?

How can I cleanup the workspace in Jenkins? I am using AccuRev as version control tool. I created freestyle projects in Jenkins.
Karthik
  • 1,471
  • 2
  • 9
  • 5
147
votes
21 answers

How to remove a TFS Workspace Mapping?

I had a project in tfs within a team project then we moved the project to a different location in another team project. I had configured Jenkins to connect to the team project and build my solution but when I changed the settings to connect to the…
The Light
  • 26,341
  • 62
  • 176
  • 258
145
votes
10 answers

Is there a way to keep Hudson / Jenkins configuration files in source control?

I am new to Hudson / Jenkins and was wondering if there is a way to check in Hudson's configuration files to source control. Ideally I want to be able to click some button in the UI that says 'save configuration' and have the Hudson configuration…
Yuval Roth
  • 1,724
  • 2
  • 13
  • 11