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
2answers
41 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
13 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 ...
0
votes
2answers
22 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 ...
0
votes
1answer
18 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
1answer
35 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 ...
0
votes
1answer
21 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 pipeline, so upon the build start, it will already have these variables. The only thing I found was this envInject ...
0
votes
0answers
7 views

Execute a step after an approval step, using “Promoted Builds Plugin”

In my work, jobs and promotion steps are configured as follows: As a first case, Development requests a deployment of a new version of an application. After that, comes the approval stage, which is ...
0
votes
0answers
14 views

Prevent replay of old builds

I have a Jenkins job that is triggered whenever there is a push of any branch with a new git tag satisfying a particular pattern. What I have found is that when I delete old builds (using the Jenkins ...
1
vote
1answer
48 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 (...
0
votes
0answers
22 views

Pushing to bitbucket from within container using ssh in Jenkins declarative pipeline

I am working on a project where the build generates a file that is needed to keep some ids consistent, therefor I need to be able to make a commit and push it to a Bitbucket repo from within the ...
0
votes
0answers
20 views

How do I run a SonarQube Google Cloud integration?

In my current project with a client, I am building a staging system. For the static test I have planned SonarQube as a corresponding solution. Unfortunately the customer is using his system within the ...
0
votes
0answers
5 views

Running COM object from Jenkins as a Windows service

I am trying to set up a Jenkins slave running as a Windows service, so that it starts automatically and can be managed remotely for updates, restarts, etc. This works well but I am not able to build ...
0
votes
1answer
21 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
27 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
24 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
0
votes
0answers
14 views

Infinite builds in Jenkins

i have a strange problem that only happened two days ago and don't know where to start checking the issue. One of the jobs that I have is scheduled to run on a daily basis with the following ...
2
votes
1answer
21 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
19 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 ...
0
votes
0answers
18 views

Test results published multiple times in Jenkins?

To record test results in jenkinsfile I am using the line below in the start of the build: junit testResults: 'build/*/*/target/surefire-reports/*.xml' To evaluate the above test results, I'm using: ...
0
votes
0answers
8 views

What is the correct regulair expression to only show master builds on a Jenkins multibranch monitor?

This works: **.*master** given some-repository » master but it should be more strict to prevent that repositories would be shown on the board if they name contains master. Attempt **^.*\smaster$*...
0
votes
1answer
16 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
25 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 ...
0
votes
0answers
13 views

How can Bitbucket webhooks be invoked after they are deleted?

I am using Jenkins 2.x and Atlassian Bitbucket 4.x. I deleted a webhook in Bitbucket. However this webhook keeps triggering builds in Jenkins. Bitbucket may be powered by Kubernetes, but I am not ...
2
votes
1answer
54 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
30 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
25 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
0answers
44 views

Permission denied connecting to Docker daemon socket under Jenkins with Kubernetes Plugin

I have a docker image that is built from the ubuntu image and all I add is gradle and openjdk11 My jenkinsfile defines the containerTemplate as this: podTemplate(label: 'java11builder', containers: [...
0
votes
1answer
49 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
23 views

Problem with build jenkins on Dokcer 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 ...
0
votes
0answers
27 views

Distributed git directory shared between directories, but with different branch on each directory

Is it possible to have a .git directory shared between multiple jobs in Jenkins, where each job is using a different branch? Reason for the question: The repository has 30 GB (all components in one) ...
0
votes
0answers
22 views

Facing issue while using “Publish Over CIFS Plugin” jenkins plugin?

I am using Jenkins in windows machine to build my .Net code and to publish artifacts in IIS server hosted on remote windows server. in this process i followed following steps. Installed jenkins,...
0
votes
1answer
15 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
0answers
22 views

Jenkins: Managing Multiple Environment Configuration and Deployments

I am working on a product where we have 3 dev teams. 1 for UI and 2 for backend. Each team requires a complete env for their own testing. There 10+ backend services and many more other components and ...
0
votes
1answer
47 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
103 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?
0
votes
0answers
19 views

How to manage volumes correctly with CI/CD workflow with nginx and laravel

Currently in a quandary over the best way to solve this issue. I've currently got jenkins pulling my app down from github repo, then using a workspace container with node, etc etc to build my ...
1
vote
0answers
11 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 ...
0
votes
0answers
32 views

Jenkins Kubernetes agent: multiple containers on dynamic agent pod - jnlp connection refused

so, I have a jenkins Master behind an Nginx reverse proxy on a GCP VM machine, and a GKE kubernetes cluster on which I need to have a dynamic slave pods. the pod has to have as an addition to the ...
0
votes
0answers
22 views

Giitea Webhook x509: certificate signed by unknown authority

On openshift cluster i deployed gitea v1.9.0 and i added a webhook for triggering the pipeline, now i'm getting the following error: Delivery: Post https://ip@:8443/apis/build.openshift.io/v1/...
0
votes
1answer
57 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
0answers
13 views

Jenkins Webhook Management

In my environment I have multiple instances of Jenkins. One instance is the 'prod' instance that is used by developers whereas the others are for me to test upgrading Jenkins, installing Plugins, ...
0
votes
1answer
284 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
22 views

Set global repository access to GitLab via GitLab connections and Gitlab OAuth

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
20 views

Update Service Hooks in TFS2015 through Jenkins Job

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
82 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 ...
0
votes
0answers
86 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 ...
0
votes
1answer
27 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
29 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
54 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
32 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. ...