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

Jenkins - trigger build only for new release branches

I have some old release branches in git: release/2022.1, release/2022.2, release/2022.3.. I have some old ones for the previous years as well. Now starting from branch release/2022.4 and for the following years from now on, I would like to trigger…
vel
  • 1,000
  • 1
  • 13
  • 35
1
vote
1 answer

How to use build parameters in the pieline.agent.node block of a Jenkinsfile?

I'm developing a Jenkins pipeline for a PHP project. Since I want to run the most of the steps from the project's root directory, I set the customWorkspace: pipeline { agent { node { label 'devvm-slave-01' …
automatix
  • 14,018
  • 26
  • 105
  • 230
1
vote
1 answer

What is the meaning of "Projects tied to {node}" in Jenkins?

I created a Jenkins node / agent / slave and use it for a pipeline. On the node's page there is a list "Projects tied to mynode". What does this mean? When is a project "tied" to a node? Btw.: If "tied to a project" means here, that the node is used…
automatix
  • 14,018
  • 26
  • 105
  • 230
1
vote
0 answers

'Include' a shared library pipeline in other pipelines in the same shared library

I have several microservices which use the same pipeline from a shared library which is named jenkins-shared-pipelines . The Jenkinsfile for a microservice is as follows: @Library(['jenkins-shared-pipelines']) _ gradleProjectPrPipeline([buildAgent:…
1
vote
0 answers

Jenkins upstreamProjects not starting jobs

I created a pipelined jobs in jenkins and want to get it triggered as another jobs ends. I introduced into my pipeline this way: pipeline { agent any triggers { upstream(upstreamProjects: "jobname" )} ... } It does not…
JAG-slaine
  • 11
  • 1
1
vote
0 answers

Build Pipeline Plugin - Jenkins - Showing only LAST Build Number of child job and only once (called from Post build action)

Jenkins: 2.89.4.x (or rolling) Build Pipeline Plugin version: 1.5.8 High level info: I have JobA (parent), which calls JobB (twice in Build Step - either sequential or parallel) and calls the same JobB (twice in Post-Build Action). JobB is simple.…
AKS
  • 16,482
  • 43
  • 166
  • 258
1
vote
1 answer

Jenkins throws Buildlog error while running using groovy script

I run a pipeline using Jenkins scripts written using DSL commands. The problem arise when suddenly one of the stages fail unpredictably with the following error: Failed to parse D:\newjenkins\jobs\JOB_NAME\builds\166\changelog1.xml The script I use…
1
vote
0 answers

jenkins 2x multibranch pipeline Behaviors

Can someone please explain different behaviors option available as a part of Jenkins 2x Multibranch Pipeline and what is the right strategy to choose in an enterprise environment. I see three options: Discover branches Discover pull requests from…
RSharma
  • 120
  • 7
1
vote
1 answer

Jenkins Log parser plugin - parsed console log page is not showing Load denied by X-Frame-Options does not permit framing ERR_BLOCKED_BY_RESPONSE

Jenkins version: 1.642.3 or 2.32.3 Jenkins machine Ubuntu 14.04 Log parser plugin: 2.0 Browsing Jenkins from my Mac OS sierra machine. In Jenkins global configuration, I created a new entry (description and file path (full) where the file contains…
AKS
  • 16,482
  • 43
  • 166
  • 258
1
vote
1 answer

Jenkins 1.5x to 2.6x Upgrade UI Layout Issue

We have around 3000 jobs on a 3 year old Jenkins instance(1.564). As part of the upgrade, we are trying to move these jobs to Jenkins 2.60.1. I tried copying the jobs folder on the new instance. Everything looks good and works fine except the UI…
Upen
  • 1,388
  • 1
  • 22
  • 49
1
vote
1 answer

Jenkins upgrade from 1.6xx to 2.xx (1.642.3 -> 2.32.2)

I upgraded Jenkins to 2.32.3 version (in place upgrade) after taking necessary backups (THIN) or $JENKINS_HOME and Jenkins is now UP and running. Under Manage Jenkins > Manage Plugins, I see the following RED error: Manage Jenkins Correct There are…
AKS
  • 16,482
  • 43
  • 166
  • 258
1
vote
1 answer

Pipeline to use artifacts from 2 projects associated by the same git branch name

the company where I work for is evaluating jenkins 2.71, in particular the pipeline and blue ocean plugins. We already tested also GoCD and we need, as in GoCD, a way for a pipeline to automatically fetch the artifacts from 2 other pipelines (taking…
firepol
  • 1,731
  • 22
  • 39
1
vote
1 answer

How to copy pipeline logs in Jenkins2 and upload it to amazon-S3?

I'm creating a pipeline which creates a CloudFormation Stack, deploy my code to the instance and destroy the CloudFormation Stack at the end (Whether the pipeline fails or successfully completes). But before destroying the stack I want to copy the…
imPK
  • 764
  • 2
  • 7
  • 30
1
vote
1 answer

How to set Jenkins environment variables in run-time

I want to set some jenkins environment variables in run time based on my computation. How can i set this run-time in my jenkinsfile's step section. for example: based on my calculation i get abc=1. How can i set this in real time in my jenkinsfile's…
Yash
  • 2,944
  • 7
  • 25
  • 43
1
vote
2 answers

How to configure a Jenkins 2 Pipeline so that Jenkinsfile uses a predefined variable

I have several projects that use a Jenkinsfile which is practically the same. The only difference is the git project that it has to checkout. This forces me to have one Jenkinsfile per project although they could share the same one: node{ def…
codependent
  • 23,193
  • 31
  • 166
  • 308
1 2 3
8 9