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
0
votes
1answer
569 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 ...
1
vote
2answers
865 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 ...
5
votes
1answer
239 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
904 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
189 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
19 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
2k 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 ...
1
vote
1answer
222 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
66 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
1k 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
104 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 ...
5
votes
2answers
3k 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
278 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
510 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>/&...
2
votes
2answers
285 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
35 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
40 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
2k 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
884 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 ...
1
vote
2answers
3k 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 ...
3
votes
1answer
71 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
2k 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
1answer
1k 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
1answer
111 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
352 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 ...
3
votes
2answers
5k 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
74 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
660 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 ...
1
vote
2answers
5k 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 ...
1
vote
0answers
67 views

Set global repository access to GitLab via GitLab connections and Gitlab OAuth [closed]

I am trying to configure a secured Jenkins server in a company network where GitLab CE is already running. I have set the access control and the authorization system in Jenkins via the GitLab ...
2
votes
0answers
57 views

Update Service Hooks in TFS2015 through Jenkins Job [closed]

Is there a way to modify what branch a service hook is monitoring through a Jenkins job? Our build jobs within Jenkins are triggered via service hooks within TFS. When we branch, inevitably we ...
5
votes
3answers
175 views

What is the optimal size of a Jenkins Pipeline Stage?

Should I create single checkout stage or multiple stages like checkout scripts, checkout code, checkout something else? How should I decide on what piece of logic to put into separate stage? Or are ...
2
votes
2answers
1k views

GitHub Payload in Jenkins

I'm using the GitHub plugin with Jenkins, and I'm trying to figure out how I can access the webhook payload. I'm aware that the Generic Webhook Trigger has this ability, as well as the GitHub Pull ...
1
vote
1answer
83 views

How to keep polling GitHub repository and get commits by it's messages on a regular interval using Jenkins?

I need to know how to write a Jenkins job which polls a GitHub repository continuously and send an email of commits made to that repo.
1
vote
1answer
836 views

Jenkins plugin site to ignore certificates

Is there a way that I can tell Jenkins to ignore certificates for the update site. Background I have an air-gapped Jenkins installation and there is currently proper way to make a proxy repo. Thus ...
0
votes
2answers
136 views

Why many companies prefer Jenkins than Aws CodePipeline? [closed]

I have searched few job sites. Many companies are searching engineers who can handle Jenkins as CI platform. I think the Aws CodePipeline is easier than Jenkins. Anyone can advise me, please. Thank ...
0
votes
1answer
235 views

How to automate the process of patching Jenkins Slave instances in AWS

I've been working on an automated patching solution for some infrastructure in one of our AWS accounts. This AWS happens to host the Jenkins instance we use for CI/CD actions, among other things. ...
0
votes
1answer
28 views

Jenkins Tool vs Slave local tool

What is the difference between using maven as a tool versus having a slave that has maven installed? I am using Jenkins on OCP and it came with a slave image for maven and not setup as a tool. I now ...
1
vote
1answer
942 views

Jenkins run build in docker on server (withDockerServer not working)

I am trying to run my build inside a docker; but I don't want the docker to run on the jenkins master but on another server that has docker running. What does work: inside jenkins configure a docker ...
1
vote
2answers
5k views

How to trigger Jenkins Pipeline by push in specific branch in Bitbucket?

I've created Jenkins Pipeline Job, activated "Build when a change is pushed to BitBucket" trigger. I've also specified branches to build. But pipeline is triggered by all branch changes. Also I've ...
1
vote
1answer
10k views

Set environment variables then run script in Jenkins Scripted Pipeline

I am new to Jenkins, Groovy and pipelines. I have created a simple pipeline stage like so: //working build but not setting env variables node('build-01') { stage('Building') { echo "[*] ...
5
votes
1answer
446 views

Pre-install Jenkins plugins using Docker image

If I have a jenkins docker image: FROM jenkins/jenkins:lts is there a way to pre-install certain plugins using the Docker image, for example all the bitbucket plugins: I assume we'd probably have ...
1
vote
2answers
2k views

How to use stored certificate in Jenkins declarative pipeline?

I have a stored certificate in Jenkins, and I need to use it in a pipelinebuild job, but the problem is it appears the Pipeline can't use certificates: trying to use: environment { KEY = ...
0
votes
2answers
48 views

Using password protected ssh keys

If you use password-protected SSH keys, is there a way to pass the password at the command line automatically instead of manually typing it? E.g. something like: ssh-add <key> -p password
1
vote
1answer
576 views

Jenkins fails to start after restart because of google login plugin had an exception

Jenkins version: Jenkins ver. 2.32.1 Google Login Plugin version: 1.3 I got the following error after I restart my jenkins, can anyone suggest me how to solve it? The thing is : I already make sure ...
0
votes
3answers
258 views

How to deploy Node app via Jenkins to Ubuntu(18.04)?

I'm a very beginner in Jenkins and afraid that I ask you something not clear with a weird question. I'd like to deploy my simple node app server to Ubuntu via Jenkins. I tried to write a command in ...
0
votes
1answer
56 views

Best Practice Authenticating Jenkins to Bitbucket to Access Team Repository

What's the "best-practice" approach to authenticate a CI tool like Jenkins or Bamboo to BitBucket? I started with App Passwords because it's cheap and easy, but I hate that it's tied to my account ...
1
vote
1answer
2k views

Load Balancing of Jenkins Nodes without Load Balancing Plugin?

we currently want to introduce a loadbalancing on the Jenkins server and our nodes. I have already created several nodes. Currently it is also so that if a node is blocked accordingly, that the next ...
0
votes
1answer
4k views

Python Script in Jenkins

I am trying to run a python script in Jenkins. My Jenkins job is integrated with Jira & on build its gives JIRA_ISSUE_KEY. I want to save the value of JIRA_ISSUE_KEY in a variable. import ...
3
votes
2answers
1k views

Jenkins Shared lib not working properly

Recently I tried to add Shared Libraries to my Jenkins instance to make it easier to maintain all code that runs in each project. I have a repo myorg/jenkins Inside of it I have Jenkinsfile and ...

1
3 4
5
6 7
12