Questions tagged [jenkins-2]

Jenkins is an extensible continuous integration server. Jenkins is open source and has packages for Linux, Mac OS X, Windows, FreeBSD and OpenBSD. This tag is for questions relating to Jenkins version 2.x. For non version-specific questions, please use the [jenkins] tag.

This tag is for questions relating to Jenkins version 2.x. For non version-specific questions, please use the tag.


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 7 (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 12 weeks.

With its 10th anniversary Jenkins 2.0 was released in April 2016 and has some enormous changes:

  • Pipeline support out of the box
  • Better UI experience with dynamic pages
  • More plugins are bundled to prevent the paradox of choice

With version 2.0 the weekly release plan was reintroduced.

123 questions
1
vote
1 answer

Jenkins 2 Pipelines: Is it possible to customize the stage text content in the view?

By default I see the stage duration in ms or sec. Is it possible to customize this text? It would help provide visual clues to each stage run. I couldn't find any reference in the docs...
florind
  • 361
  • 4
  • 12
1
vote
2 answers

Change jenkins timestamp according to the browser timezone

I have a really simple question and couldn't find the answer about. Is it possible to change the jenkins timestamp according to the user's browser timezone. As my Jenkins server is in UTC but some of our users are in Central timezone while other are…
Arbab Nazar
  • 22,378
  • 10
  • 76
  • 82
1
vote
2 answers

Jenkins Limiting Perforce view in Pipeline

I have a Jenkins2 Pipeline where I sync with: p4sync charset: 'none', stream: myStream, format: clientName, populate: [$class: 'ForceCleanImpl', have: true, pin: '', quiet: true] where myStream is a parameter passed to the…
abergmeier
  • 13,224
  • 13
  • 64
  • 120
1
vote
1 answer

Clean workspace in Jenkins2

I have an issue in Jenkins2 that a build is failing and only clean to workspace fix the problem. In Jenkins1 I was able to clean the workspace manually, in Jenkins2 I don't see this issue. I'm deleting the remote branches and recraete them to clean…
Ido Ran
  • 10,584
  • 17
  • 80
  • 143
1
vote
1 answer

Jenkins 2 override plugins.txt

I´m migrating from Jenkins 1.6 to Jenkins 2.0. I was using docker to create and run Jenkins. And in order to configure as immutable jenkins, we used to copy all xml config files and use plugins.txt to install all necessary plugins. But problem now…
1
vote
0 answers

How to Run a Jenkins Job(Powershell command) under context of the logged in Active Directory User

Context: Created a Domain Controller with Active Directory Setup. Created another Server with Jenkins-2 installed.(DNS Points correctly to the Domain Controllers) Installed the Active Directory Plugin Installed the Powershell Plugin Created a…
blogbydev
  • 1,445
  • 2
  • 17
  • 29
1
vote
1 answer

Jenkins fails to parse POM with variables

tl;dr: mvn clean install works as expected, but Jenkins is not able to resolve variables in child poms. We have a project with a main pom and multiple sub poms. It seems to fail in the sub pom with the variable ${project.version} not being resolved…
michaelbahr
  • 4,837
  • 2
  • 39
  • 75
1
vote
1 answer

Jenkins 2 - Unstable build on failed tests

As described on this issue, Jenkins1 adds the property maven.test.failure.ignore when executing Surefire & Failsafe plugins, so when tests fail on a build, the job continues. Eventually, the maven state is SUCCESS and jenkins state is UNSTABLE. On…
Matthieu Saleta
  • 1,388
  • 1
  • 11
  • 17
1
vote
2 answers

Updating Jira ticket from jenkins 2 pipeline

Hi I am implementing a jenkins 2 pipeline. I am trying to create a groovy function that will update a given story in Jira. I found the below code which I have been told should work. step([$class: 'hudson.plugins.jira.JiraIssueUpdater',…
user2730471
  • 37
  • 2
  • 7
1
vote
1 answer

Jenkins 2 loose parameters from previous Build Job

I have just upgrade from Jenkins 1.656 to jenkins 2.14 and my jobs failed because they didn't receive any parameters from previous jobs. When reinstalling old 1.656 the comportement is back to normal (parameters are send normally to downstream…
jmcollin92
  • 2,896
  • 6
  • 27
  • 49
1
vote
2 answers

Jenkins: Triggering Maven Release manually in Build Pipeline

I got a problem with my Jenkins (1.6) setup and so far haven't found a solution. What I want to do: I have 4 Jobs (StartJob, TestA, TestB, ReleaseJob) and I'd like to have a "pipeline", that says: Start with "StartJob" After that, build "TestA"…
1
vote
0 answers

use publishHTML in Jenkinsfile on fail

currently I have this in my Jenkinsfile: sh "./gradlew spoon${flavorCombination}" publishHTML(target:[allowMissing: true, alwaysLinkToLastBuild: true, keepAll: true, reportDir: "android/build/spoon-output/${flavorCombination}DebugAndroidTest",…
ligi
  • 39,001
  • 44
  • 144
  • 244
1
vote
1 answer

Specify properties once, not twice

When I have a pipeline in Jenkins 2 multi-branch project like : node { stage 'Stage Checkout' // Checkout code from repository and update any submodules //checkout scm git credentialsId: 'myId', url: 'https://gitlab.mycompany.com' stage…
Georg Heiler
  • 16,916
  • 36
  • 162
  • 292
1
vote
2 answers

Usage of Global property in Pipeline job

I want to use a global variable that I have created in my Jenkins Configuration as follow: My question is: How can I use it in my Pipeline(aka workflow) job? I'm doing something like: When I ran it, It displayed: [Pipeline] node Running on master…
Daniel Hernández
  • 4,078
  • 6
  • 27
  • 38
1
vote
0 answers

How to make Jenkins 2.0 works with GitLab 8.7

I'm not sure if it's right place to ask this question, but I read a lot on the Internet and I tried a lot making GitLab 8.7 (actually, I'm talking about http://gitlab.com) and my own private Jenkins instance work together. I followed the…
radium226
  • 1,993
  • 2
  • 12
  • 10
1 2 3
8 9