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

How to deploy node app to remote host from Jenkins?

This is Jenkins file in the root of node app directory: pipeline { agent any triggers { pollSCM('* * * * *') } stages { stage("deploy") { steps { sh "scp" } } } } I…
ace
  • 11,526
  • 39
  • 113
  • 193
13
votes
4 answers

How to auto deploy Docker containers from Amazon ECR to Kubernetes using Jenkins

This is our environment: I have a Kubernetes cluster running on Amazon. Jenkins CI/CD running on Amazon that connects to a private GitLab and builds our services as Docker images. Amazon ECR that stores our Docker images. My questions: How can I…
MasoudSat
  • 130
  • 1
  • 1
  • 6
13
votes
2 answers

Jenkins with Google Cloud Source Repository

I am trying to use Jenkins for CI/CD. I've developed a Python flask application. I am deploying this application into Google App Engine. So far I am using gcloud app deploy app.yaml command to deploy application to Google App Engine. Code for this…
13
votes
7 answers

'assembleDebug' Task not Found While Running From Jenkins

I am new to Android development and trying to setup Jenkins to automate build generation on my mac machine. When I run the Jenkins build it is not generating any apk at jenkins workspace. I am gradle wrapper and 'gradlew assembleDebug' command but…
tarunsh_iphone
  • 133
  • 1
  • 1
  • 4
13
votes
1 answer

Is there a way to add pre-build step for Jenkins pipeline?

Currently I'm able to use a post directive in my Jenkinsfile. Is there a way to trigger a pre-build step similar to this ? post { always { sh '''rm -rf build/workspace''' } }
mirza
  • 5,685
  • 10
  • 43
  • 73
13
votes
2 answers

How to pass multi select value parameter in Jenkins file(Groovy)

E.g. Below code is used for single select value choice{ choices: 'Box\nOneDrive\nSharePointOnline\nGmail\nGDrive\nGenericS3', defaultValue: 'box', description: 'Connector to build', name:…
Aditya
  • 818
  • 1
  • 10
  • 21
13
votes
2 answers

jenkins pipeline sh adding new line

My pipeline sh block: sh "set +e; /terraform/terraform plan -var aws_access_key=${aws_access_key} - var aws_secret_key=${aws_secret_key} -var aws_ami=${ami_id} -var aws_instance_type=${instance_type} -var aws_elb_security_group=${elb_sg} -var …
user6481062
  • 393
  • 1
  • 4
  • 17
13
votes
1 answer

jenkins: how to capture stderr output

In jenkins, you can run a script with sh(). There is an options to returnStdout, which will send stdout to a return value, rather than printing it to the console. Is it possible to capture stderr in any way? Whether through an option to the…
ewok
  • 20,148
  • 51
  • 149
  • 254
13
votes
2 answers

How can i add Jenkinsfile support to visual studio 2017

I am using Visual Studio 2017 Pro, and i am being driven crazy by the lack of syntax highlighting for the Jenkinsfile in my project. I am using the Declarative Syntax, but i just cant seem to find anything on getting this to work. My research says…
Rick james
  • 824
  • 1
  • 11
  • 30
13
votes
1 answer

How to configure Gradle cache when running Jenkins with Docker

I'm working on building Jenkins pipeline for building a project with Gradle. Jenkins has several slaves. All the slaves are connected to a NAS. Some of the build steps run Gradle inside Docker containers while others run directly on the slaves. The…
Ido Ran
  • 10,584
  • 17
  • 80
  • 143
13
votes
1 answer

How to stop and start Jenkins on Mac

I installed Jenkins on my Mac local machine. It is running and working fine. What is the right way to stop and start the server from terminal?
Sinshaw Demisse
  • 232
  • 1
  • 3
  • 12
13
votes
2 answers

Pass variables between Jenkins stages

I want to pass a variable which I read in stage A towards stage B somehow. I see in some examples that people write it to a file, but I guess that is not really a nice solution. I tried writing it to an environment variable, but I'm not really…
Dirkos
  • 488
  • 1
  • 10
  • 33
13
votes
2 answers

Jenkins user is gone after macOS update

I'm running Jenkins as a CI server on a Mac. It was running fine on macOS 10.12 with the typical setup with user jenkins. Today I upgraded macOS to 10.13 (High Sierra). Jenkins could not start after the upgrade process completed. Furthermore, there…
Vladimir Grigorov
  • 10,903
  • 8
  • 60
  • 70
13
votes
4 answers

Jenkinsfile error- java.lang.NoSuchMethodError: No such DSL method 'withMaven' found among steps

I am currently trying to implement pipeline in jenkins using jenkinsfile and i am executing a maven project on windows machine. I am creating a pipeline job in jenkins and i have checked in this file in my github repository and when i am running the…
Abhishek Somani
  • 473
  • 2
  • 6
  • 17
13
votes
1 answer

Jenkins Multi-branch pipeline doesn't schedule tag jobs

I'm trying to get Jenkins' multibranch pipeline job to build tags in a similar manner to branches. In Jenkins 2.73 (not sure when the functionality was added), Multibranch projects can be configured to retrieve both branches and tags from the source…
martsa1
  • 163
  • 1
  • 7