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
3 answers

Getting exception while configuring the maven project in jenkins

Not able to trigger a successful build using Jenkin. Jenkin Version : 2.46.1 Maven Version :3.5.0 Java version : jdk1.7.0_67 I created one simple project in java on Maven . Now when i integrate this with Jenkin and click on the build now. Build…
sougata das
  • 387
  • 2
  • 3
  • 16
13
votes
6 answers

Determine Failed Stage in Jenkins Declarative Pipeline

How do I report the stage in which a declarative pipeline failed? In the fail block, I want to get failedStage.name and report it (eventually to slack). pipeline { agent { label 'master'} stages { stage('Ok') { steps { …
Peter Kahn
  • 12,364
  • 20
  • 77
  • 135
13
votes
3 answers

Jenkins integration for dotnet test

I'm running a unit test of a dotnet core library using dotnet test. I run the test on my Jenkins slave like this. dotnet test test/Turbine.Domain.UnitTest -xml mstest-reports/Turbine.Domain.UnitTest.xml The test report looks like this.
Ranj
  • 523
  • 3
  • 6
  • 17
13
votes
4 answers

Jenkins docker agent in declarative pipeline: file not found

When trying to execute the example from https://github.com/jenkinsci/pipeline-model-definition-plugin/wiki/Controlling-your-build-environment: pipeline { agent { docker 'node' } stages { stage("testing 123") { …
Vincent de Lagabbe
  • 4,964
  • 3
  • 31
  • 38
13
votes
1 answer

Jenkins not finding a nuget package

I'm setting a Jenkins CI server. I got the first step to run properly: nuget restore -NonInteractive -ConfigFile Nuget.config -Verbosity Detailed -NoCache That works properly, but when I want to compile the app with: C:\Program Files…
Fritjof Berggren
  • 3,178
  • 5
  • 35
  • 57
13
votes
3 answers

Using waitForQualityGate in a Jenkins declarative pipeline

The following SonarQube (6.3) analysis stage in a declarative pipeline in Jenkins 2.50 is failing with this error in the console log: http://pastebin.com/t2ja23vC. More specifically: SonarQube installation defined in this job (SonarGate) does not…
Idan Adar
  • 44,156
  • 13
  • 50
  • 89
13
votes
2 answers

JUnit test with Embedded tomcat server , how to specify automatic ports for both http and https connectors?

Description I have made a JUnit test that focus on trying to test a call to a SOAP web service. I am using an embedded tomcat server for my test in order to run my test with a mock server. I am also using both http and https connectors. I need to…
Florent M
  • 143
  • 1
  • 7
13
votes
4 answers

Jenkins set github commit status not working

I see that the command is being called in the logs but in GitHub it does not display the status. [Set GitHub commit status (universal)] PENDING on repos [] (sha:47ccf20) with context:api The webhook-url is working correctly and is notifying…
Michael St Clair
  • 5,937
  • 10
  • 49
  • 75
13
votes
1 answer

Jenkins shared library: what is the difference between functions in /vars folder and /src folders?

I have followed jenkins extending pipeline with shared libraries it was mentioned that The src directory should look like standard Java source directory structure. This directory is added to the classpath when executing Pipelines. while the…
Monem
  • 255
  • 2
  • 15
13
votes
6 answers

using Jenkins2 pipeline to upload via FTP

I'm using the new Jenkins2 pipeline to build a composed project with: node frontend php backend both are in different repositories hence, the need to use pipeline to sync them, compile, and prepare them to deploy. I cannot find a simple way to…
genuinefafa
  • 703
  • 1
  • 6
  • 21
13
votes
1 answer

Dynamic Parameter in Jenkinsfile?

How can I use the Jenkins Dynamic Plugin in a Jenkinsfile? What I am looking for is a Jenkinsfile snippet that: Enables the Build with Parameters option in the Jenkins job When selected, a script that populates a list that can be used Dynamic…
matsev
  • 32,104
  • 16
  • 121
  • 156
13
votes
3 answers

Installing Jenkins the first time and do not know the default user name

I tried using Jenkins or my admin username as user and password. For password, I tried to update using sudo passwd jenkins, so I am fine on that. However, I am skeptical about the user name. How do I confirm the username for Jenkins? Can someone pls…
Ashvitha
  • 5,836
  • 6
  • 18
  • 18
13
votes
7 answers

Vagrant VM is running but not showing in VirtualBox

I have installed Jenkins(version 2.74) and installed vagrant plugin. Created a job which creates a vagrantfile and executes vagrant box add command vagrant box add test solaris.box and executed vagrant up command and VM is running successfully in…
user2439278
  • 1,222
  • 7
  • 41
  • 75
13
votes
4 answers

How to invoke bash functions defined in a resource file from a Jenkins pipeline Groovy script?

We are using the Pipeline Shared Libraries plugin to factorize the code common to our different Jenkins pipelines. From its documentation, it offers a resources top-level folder for non-Groovy files. As we rely on different bash functions, we would…
Ad N
  • 7,930
  • 6
  • 36
  • 80
13
votes
2 answers

Jenkins uptime - how long since last restart

Is it possible to see how long a Jenkins instance/master has been running? I've tried looking around in "Manage Jenkins" but can't find it there. I know I could log in and check the process on the machine, but is it possible to do it in Jenkins web…
MaTePe
  • 936
  • 1
  • 6
  • 11
1 2 3
99
100