A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [jenkins]

For questions about Jenkins, an open source automation server, and using Jenkins for topics such as building, testing, and deploying software, etc. For questions specifically about Jenkins Plugins use the jenkins-plugins tag.

Filter by
Sorted by
Tagged with
2
votes
1answer
62 views

Best solution for code develop

What is the best git solution for java code development? Make my own git server? Developers (Linux, Mac, Windows) are working on their local computers, then they are using my own git server. Would ...
0
votes
1answer
31 views

Safari test automation using Robot Framework via Jenkins

I spent about one week trying to make my Robot Framework tests work for Safari browser in MacOS, when launched by Jenkins via ssh. The main issue was that Robot couldn't open a browser when executed ...
1
vote
1answer
21 views

Is it possible to send email notification for Input (GO/NOGO) from a pipeline

There is User input functionality in the declarative pipeline which prompt on the Jenkins console but it's a headache to login every time on console and select the appropriate action. So I want to ...
1
vote
1answer
34 views

How to deploy SQL Script in DevOps culture and Rollback situation too?

How we can manage database part in DevOps environment/CICD pipeline, Here taking about the SQL Script. For Example any deployment where Insert and Update SQL's, If we setup in CICD pipeline then I ...
0
votes
1answer
200 views

jenkins credentials not used as expected when cloning git repo

I am trying to setup a jenkins pipeline for my IaC code validation, for this I'd like jenkins to clone a gitlab (hosted) repository, for this purpose I setup a credential using username / key type, i ...
2
votes
1answer
36 views

Recommended Design - Communication among Jenkins + Vault + App

Design A: CD tool communicate with Vault to fetch App secrets on its behalf Jenkins ( CD tool ) computes the Vault path according to the app/project & according to which environment the app will ...
1
vote
1answer
21 views

Kubernetes and Jenkins

I started building CI/CD pipeline using two Kubernetes clusters and one Jenkins. Two clusters are totally isolated as one is in the test environment and other in production. After searching from many ...
1
vote
1answer
286 views

jenkins stuck “Please wait while Jenkins is getting ready to work”

I've been trying to get a simple jenkins master node to start but it keeps getting stuck at the "Please wait while Jenkins is getting ready to work". My setup is nothing exotic: jenkins is installed ...
1
vote
1answer
22 views

Is there a Radiators for Jenkins and Bamboo?

I need to bring our companies rather old build radiators upto standard so it reflects what our current toolstack looks like. However, we're currently inside a weird limbo between using both Jenkins ...
1
vote
2answers
35 views

Dev-Ops with bitbucket

I want to improve my current dev CI workflow, I would like to create a server with ISPConfig and some kind of CI tool like Jenkins The catch is It has to all sit on 1 server, I see folks saying ...
-2
votes
1answer
26 views

How do I convert xml to a Jenkins Job?

I want to restore a deleted Jenkin's job. I had the JobConfig history plugin installed, but it does't have a restore option for that job. It only shows the xml file. I'm wondering how I can restore a ...
1
vote
1answer
65 views

Why does Jenkins safeRestart not wait for job to finish?

I have a simple pipeline job with a single stage: timestamps { node ("jenkins-slave-small") { stage('Stage 1') { sh "echo 'stage2 echo'; sleep 500s" } }...
1
vote
1answer
105 views

Jenkins Git Client Plugin Issue

Git Client plugin previously was version was version:3.0.0-rc(beta) which has security vulnerabilities so upgraded to latest version:2.8.6 (latest). But unfortunately all the dependency plugins were ...
4
votes
1answer
42 views

How to handle availability zones and failover with ansible? Is it even within the scope of ansible?

I am only getting started with ansible. I want to set up a new development infrastructure with the infrastructure as code principle. First thing I'll have to prove is a Jenkins instance with a few ...
1
vote
1answer
27 views

How to enable shallow clone using JCAC?

Another question that is related to this one. We try to configure the shallow clone using Jenkins Configuration As Code (JCAC). Although a configuration section is available, shallow clone seems to be ...
0
votes
1answer
14 views

How to set a shared-library globally using the JCAC plugin?

This Q&A is related to this one and is slightly different.
0
votes
1answer
89 views

How to set git-lfs as an additional checkout behavior using the JCAC plugin?

We are using the Jenkins Configuration As Code (JCAC) plugin to automate the jenkins configuration. One of the challenges is to set git-lfs as an additional checkout behavior. GitLFSPull has to be ...
0
votes
0answers
21 views

Jenkins - squish plugin error “could not connect to Squish server”

I am experiencing randomly the following issue when Squish tests are run on Jenkins: [...] Fri Sep 13 11:21:33 CEST 2019 Fatal Connecting to Squish server Detail: Could not connect to Squish server ...
1
vote
0answers
73 views

Anonymous “Agents can connect” Jenkins health check url?

I have a situation where I would like to spin up a distributed Jenkins build server with docker-compose (as part of local testing before deploying to OpenShift). Unfortunately the agents spin up, ...
1
vote
2answers
164 views

docker build throws UnknownHostException with jenkins dind slave + kubernetes plugin

So Jenkins is installed inside the cluster with this official helm chart. And this is my installed plugins as per helm release values: installPlugins: - kubernetes:1.18.1 - workflow-job:2.33 ...
0
votes
0answers
14 views

How to provision side containers for jenkins using ECS?

We are successfully using the Jenkins ECS plugin to run many of our builds and tests. However, we have some jobs which require unit tests using mocks, which are often implemented using docker-compose ...
0
votes
1answer
31 views

Connect external Jenkins Master to GKE with Kubernetes plugin

I find the documentation at https://github.com/jenkinsci/kubernetes-plugin quite unclear when it comes to step by step configuration of external Jenkins master. What are the exact steps that need to ...
0
votes
2answers
107 views

Jenkins multi branch pipeline configuration for bitbucket [closed]

How to configure multi branch pipeline job for bitbucket ....i have to clone from different branches and build the jobs.... I found multi branch is the option... How to configure for bit bucket
2
votes
2answers
67 views

How to SSH from Jenkins node to Jenkins node safely?

We have a Jenkins Job that builds something on node A and then needs to SCP it to node B. You can just put the SSH keys for node B on Node A, and SCP with an execute shell build step, however I ...
1
vote
1answer
18 views

Pooled Build Server and Multibranch development to stabilize the trunk?

I'm a Dev in a big (40+ Devs) old (16+Years) SW project. We still work with SVN as source control but we are getting after automation as much as we can. One problem that hounts us is, that 40 devs ...
2
votes
3answers
107 views

How to execute a Jenkins job until the build is green

We have got test automation in Jenkins, and we would like to execute it at midnight. But sometimes it fails, and sometimes it passes. Our idea is to execute the daily builds from 1:00 AM until it is ...
0
votes
1answer
42 views

Is there a way to set build parameters outside of the pipeline directive?

My build parameters are defined in my jenkinsfiles All builds run on container slaves on google kubernetes engine cluster This means users need to wait for a container to start before anything ...
1
vote
2answers
42 views

Jenkins pipeline running using containers on an orchestration platform

I have a specific implementation of jenkins on docker. My requirement is to start slave containers on demand and only when they are needed and then stop them after the pipeline has ran. I have the ...
1
vote
1answer
228 views

What's are the advantages of using CloudBees Core over Jenkins?

I have tried Jenkins on my own and about to propose an enterprise grade CI/CD product to my development team which is around 40 people. CloudBees Core come at the top of my selected list since it is ...
0
votes
2answers
61 views

Can/should I use Jenkins to monitor whether a website is up and send out an email if it's down?

I'm trying to set up a way to constantly monitor a website that is built and deployed via Jenkins. A simple curl command would tell me if everything is OK, but how I would set up a job to do this ...
1
vote
2answers
490 views

Is it possible to pass environment variables to multibranch pipeline job in a time of generating it via DSL?

I want to pass some environment variables in the time of generating the multibranch pipelines, so upon the build start, it will already have these variables. The only thing I found was this envInject ...
1
vote
2answers
67 views

Jenkins Email notification for multiple builds

I need suggestion for Jenkins project (multi-conf or pipeline) and plugins that will fit my work. I have 10 "flavors" of the product, so I must build 10 times every time I commit to the repository (...
1
vote
2answers
58 views

How to clean up old images in docker registry with jenkins

I have a jenkins multi branch project, that builds on every commit and pushes the image to our private registry: docker-reg:5000/<project>/<branch>:latest docker-reg:5000/<project>/&...
0
votes
1answer
58 views

How to add my own columns to Jenkin's Dashboard

I want to add my custom columns, and I also want to add some popups on those columns in Jenkins dashboard. How does one add new columns, which are not present in job's configuration page?
0
votes
1answer
29 views

CICD using jenkins which is installed in other machine

Suppose I have two machine ( A & B ) and i have jenkins installed in machine A , can I deploy in machine B using Jenkins installed in machine A? I am using Jenkins Multibranch pipeline
2
votes
1answer
28 views

Restrict user logon in Jenkins

We have been using groovy script to read the build queue state: def builder = new groovy.json.JsonBuilder() builder { queueItems(Jenkins.instance.queue.items.collect { obj -> [ id:...
1
vote
1answer
565 views

How to use comments to trigger rebuilds of Bitbucket pull-requests on Jenkins multi-branch pipeline

I have successfully configured a Jenkins multi-branch pipeline to build my project which is hosted on Bitbucket. I have separate pipeline requirements for the "develop" and "release" branches, and for ...
1
vote
1answer
155 views

GIT Monorepo with enterprise Jenkins

Need bit of help regarding Jenkins CI jobs. I am pretty new to Jenkins world As per the current set up in our project we have different repositories in GIT and they have web hooks setup with Jenkins ...
0
votes
2answers
477 views

How do I configure Jenkins to trigger on a pull request based on the Git branch's name?

I want pull requests to Git where the target is master and the source has a string "foo" to trigger a Jenkins build. If this string "foo" appears in the source branch's name when there is a pull ...
2
votes
1answer
60 views

What is the need of plugins in Jenkins (Sonarqube)

On learning about integrating Sonarqube to CI/CD pipeline, I came across the Sonarqube Jenkins plugin which most of the online blogs recommends. After configuring it, I realized that the working is ...
0
votes
1answer
263 views

Can “When” like keyword be used in scripted pipeline?

stage('My Conditional Stage') { when { branch 'master' } steps { echo 'Do that only on master branch' } } For Scripted pipeline ; if value of i is 0 then we need skip ...
0
votes
0answers
45 views

Limit on Jenkins for 1. Builds per hour OR 2. Number of uploads per hour on Nexus from Jenkins

One of our group member configured a new Jenkins job and somehow it triggered every minute. This build uploads the artifacts around 250MB to Nexus, so in few hours our nexus server got full and other ...
0
votes
1answer
249 views

Jenkinsfile for monorepo & monobranch

I'm currently working on a Microservice architecture-based project and writing Jenkins Pipeline for it. The project structure is as follows: Web Service (master) Jenkinsfile Service 1/ Jenkinsfile ...
1
vote
0answers
37 views

Problem with build jenkins on Docker Container with Ubuntu

I Have this Dockerfile and I want build container (based on Ubuntu) and install on him Jenkins. FROM ubuntu:18.04 RUN apt-get update RUN apt-get install -y --no-install-recommends \ gnupg2 \ vim ...
1
vote
1answer
33 views

Jenkins won't substitute variables when trying to check out from perforce

I want to generalize my code so that it can pull from perforce for any files marked with a type "perforce" because some files need to downloaded from the artifactory instead. I want to sub in the ...
0
votes
1answer
147 views

How can I install Jenkins on Azure?

Currently I have Jenkins installed on Windows Server as a Service but I am looking at installing Jenkins on Azure but the MSDN docs talk about creating a Jenkins server on an Azure Linux VM from the ...
1
vote
1answer
823 views

How to trim spaces for parameter value in jenkins pipeline?

I am using jenkins pipeline job with parameters. when i had any trailing spaces in parameter value the job gets failed. is there any way to trim the spaces in pipeline job to avoid build failure?
2
votes
1answer
20 views

Commit messages from Submodules to Jenkins Change Log

I have a project with 3 submodules that are updated whenever that project is built and the project is built mainly for an installer (which is not in a submodule). Not a lot of changes are made in the ...
1
vote
1answer
312 views

Docker fails to mount volume inside Jenkins scripted pipeline

I'm working on a CI Jenkins build with scripted pipeline. From Jenkins on one machine, I'm connecting with already configured Jenkins slave on another machine (M2). I'm able to successfully execute ...
0
votes
1answer
2k views

How to cache node_modules folder when using Jenkins Multibranch Pipeline

I'm using Jenkins Multibranch Pipeline to handle my CI/CD and I'd like to know if is there a way to cache my node_modules folder? Every time I push a branch, I execute yarn to install the ...